Re: Re: PHP 4.0 Bug #5167 Updated: include() function works incorrectly with directories - symbolic links
| From: | Andi Gutmans | Date: | Tue, 27 Jun 2000 20:06:44 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5167 Updated: include() function works incorrectly with directories - symbolic links | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22563@lists.php.net to get a copy of this message | ||
You are right. My fix wasn't correct.
I will try and fix it tomorrow before releasing 4.0.1 but as it only effects thread-safe version under UNIX it's not a big deal.
Thanks,
Andi
At 11:56 PM 6/27/00 +0400, Kirill Maximov wrote:
On Tue, Jun 27, 2000 at 10:44:28PM +0300, Andi Gutmans wrote: Hmm weird. I tested it thoroughly. Can you please post a very short reproducing case which includes instructions on which symlink to make? I've used exactly the same configuration as described in my bug report: magnat!kir$ ls -lR .: total 6--- Andi Gutmans <andi@zend.com> http://www.zend.com/drwxr-xr-x 2 kir staff 512 éÀÎ 21 12:39 a1 drwxr-xr-x 2 kir staff 512 éÀÎ 21 12:47 a2 -rw-r--r-- 1 kir staff 17 éÀÎ 21 12:49 test_file.php./a1: total 2lrwxrwxrwx 1 kir staff 5 éÀÎ 21 12:39 link -> ../a2./a2: total 2-rw-r--r-- 1 kir staff 35 éÀÎ 21 12:49 a.phpmagnat!kir$ cat test_file.php <? echo "Hi"; ?> magnat!kir$ cat a2/a.php <? include("../test_file.php"); ?> magnat!kir$ lynx magnat:8000/~kir/TEST/a/a1/link/a.php ^^^ gives an error. magnat!kir$ lynx magnat/~kir/TEST/a/a1/link/a.php ^^^ works fine but uses PHP3.0.17-dev Andi At 11:37 PM 6/27/00 +0400, Kirill Maximov wrote:On Wed, Jun 28, 2000 at 06:03:49PM -0000, Bug Database wrote:latest CVS.ID: 5167 Updated by: andi Reported By: kir@astrive.ru Status: Closed Bug Type: Misbehaving function Assigned To: Comments: Thanks for the bug report. I am commiting a fix for this to thethatIf you could test it that would be great. Edit php.h and make sureVIRTUAL_DIR is defined (remove the #ifdef ZTS before the VIRTUAL_DIR definition). Unfortunately, if I define VIRTUAL_DIR, the same error arises :(. If VIRTUAL_DIR remains undefined, everything is fine ... I did full recompile of PHP4 to test configuration with VIRTUAL_DIR defined. Best regards, KIRhttp://bugs.php.net/version4/?id=5167Full Bug description available at:--- Andi Gutmans <andi@zend.com> http://www.zend.com/ -- ----- ----- ----- ----- ----- ----- ----- ------- ----- ----- ----- ----- ----- ----- ----- -----Kirill Maximov maximov@astrive.com Astrive, Inc. http://www.astrive.com-- 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.netKirill Maximov maximov@astrive.com Astrive, Inc. http://www.astrive.com