Re: PHP 4.0 Bug #5167 Updated: include() function works incorrectly with directories - symbolic links

From: Date: Tue, 27 Jun 2000 11:20:24 +0000
Subject: Re: PHP 4.0 Bug #5167 Updated: include() function works incorrectly with directories - symbolic links
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22455@lists.php.net to get a copy of this message
Stanislav Malyshev wrote: > > KM>> Which path? The filesystem path or symbolic link path? > KM>> And if we have several symbolic links to a directory ? > > Current script's path. That's no good - it should try and get real > path. We'll look into fixing it. Do you mean that even in thread-safe environment require/include will work as in PHP3? > > KM>> Anyway, the behaveour of include/require functions changed scince > KM>> PHP3 (and even scince some beta of PHP4). If it is new > KM>> incompatible feature, IMHO, it should be documented. Or, > > Yes, it has changed - because of thread-safety support (you can't just do > chdir() in threaded environment). If you don't use thread-safety, 4.0.1 > will disable virtual chdir support, so you get old behaviour. Well, but as I understand require/include don't require chdir() operation? Or I'm wrong? > > KM>> I need to know, if I have to change the structure of my PHP code > KM>> which relies on previous behaveour (i.e., "../" in include/require > KM>> goes up in directory structure without checking of sysmbolic links). > > Not, you have to disable VIRTUAL_DIR in php.h and rebuild. If you *still* make in progress ;-) > will have this problem (which is highly improbable, but just in > case) please report, along with your configure line and environment > details. Just a silly question - when do I need thread-safety? Surely, I want my PHP code to work in both environments, thread safe and unsafe. And I want it to work in PHP3/4. Best regards, KIR

« previous php.dev (#22455) next »