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

From: Date: Tue, 27 Jun 2000 11:02:42 +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-22451@lists.php.net to get a copy of this message
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. 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. 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* will have this problem (which is highly improbable, but just in case) please report, along with your configure line and environment details. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#22451) next »