Re: [PHP-DEV] Re: Current working directory and multi-threaded environments From: rubys <email protected>
Date: 03/15/00

>We are talking about reacting (getcwd) to an action by the server (chdir).

That's not how I interpreted Andi's proposal.

>I think we should always start with cwd = dirname(executing_script).

I believe that both Unix and Windows maintain the notion of a current
working directory on a per process basis. While PHP can run on
multi-threaded web servers, there currently is a semaphore which prevents
mutliple PHP scripts from running at the same time.

If we were to ever want to enable multiple PHP scripts to run at the same
time, PHP will have to get to the point where it no longer relies on the
operating system of a current working directory,

>(Perhaps the code fragment you posted does that.)

What my code fragment does is to restore the server's notion of what the
current working directory should be after PHP rudely changes it.

- Sam Ruby

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>