On Sun, 23 Feb 2003, Jim Jagielski wrote: > 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.
That's true, but in threaded mode we don't do the chdir() at all. This is specifically for non-threaded. -Rasmus -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php