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

From: Date: Tue, 27 Jun 2000 10:59:32 +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-22450@lists.php.net to get a copy of this message
Bug Database wrote: > > ID: 5167 > Updated by: stas > Reported By: kir@astrive.ru > Status: Open > Bug Type: Misbehaving function > Assigned To: > Comments: > > The cause is that PHP thinks about pathes symbolically, > i.e. ".." means not "cd to .." but "strip last component of the > path". Which path? The filesystem path or symbolic link path? And if we have several symbolic links to a directory ? Anyway, the behaveour of include/require functions changed scince PHP3 (and even scince some beta of PHP4). If it is new incompatible feature, IMHO, it should be documented. Or, even better, there could be a parameter in configuration file. I need to know, if I have to change the structure of my PHP code which relies on previous behaveour (i.e., "../" in include/require goes up in directory structure without checking of sysmbolic links). > On Unix it's not the same. > > Full Bug description available at: _ > #¦àz3U0Z Y «æhttp://bugs.php.net/version4/?id=5167 > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- ----- ----- ----- ----- ----- ----- ----- ----- Kirill Maximov maximov@astrive.com Astrive, Inc. http://www.astrive.com

« previous php.dev (#22450) next »