Re: Performance degradation part 2 the module version

From: Date: Sun, 23 Feb 2003 19:08:04 +0000
Subject: Re: Performance degradation part 2 the module version
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94503@lists.php.net to get a copy of this message
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 [|] jim@jaguNET.com [|] http://www.jaguNET.com/ "A society that will trade a little liberty for a little order will lose both and deserve neither" - T.Jefferson

« previous php.dev (#94503) next »