Rasmus Lerdorf wrote:
> 
> Even in 4.2, I think we can optimize it.  Assuming chdir() doesn't return
> an error, we shouldn't need that second getpwd() call since we just did
> the chdir() and we should know where we are.
> 

Not necessarily... In a threaded environment, if threadA does
chdir(/tmp) and then threadB does chdir(/var), then the actual
process is in /var for the remainder of threadA (IIRC).
chdir() is process scoped.
-- 
===========================================================================
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to