Re: Re: PHP 4.0 Bug #5167 Updated: include() function works incorrectly with directories - symbolic links
| From: | Kirill Maximov | Date: | Tue, 27 Jun 2000 19:56:15 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5167 Updated: include() function works incorrectly with directories - symbolic links | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22562@lists.php.net to get a copy of this message | ||
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
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 2
lrwxrwxrwx 1 kir staff 5 Июн 21 12:39 link -> ../a2
./a2:
total 2
-rw-r--r-- 1 kir staff 35 Июн 21 12:49 a.php
magnat!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:
> > > 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 the latest CVS.
> > > If you could test it that would be great. Edit php.h and make sure that
> > VIRTUAL_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,
> > KIR
> >
> > >
> > >
> > > Full Bug description available at:
> > > http://bugs.php.net/version4/?id=5167
> > >
> >
> >--
> >----- ----- ----- ----- ----- ----- ----- -----
> >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.net
>
> ---
> Andi Gutmans <andi@zend.com>
> http://www.zend.com/
--
----- ----- ----- ----- ----- ----- ----- -----
Kirill Maximov maximov@astrive.com
Astrive, Inc. http://www.astrive.com