Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78531 invoked from network); 7 Aug 2008 18:20:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Aug 2008 18:20:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:36508] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/73-29324-ADC3B984 for ; Thu, 07 Aug 2008 14:20:10 -0400 Received: from trainburn-lm.corp.yahoo.com (trainburn-lm.corp.yahoo.com [207.126.233.11]) (authenticated bits=0) by mail.lerdorf.com (8.14.3/8.14.3/Debian-5) with ESMTP id m77IK3jT017016 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 7 Aug 2008 11:20:04 -0700 Message-ID: <489B3CD3.30409@lerdorf.com> Date: Thu, 07 Aug 2008 11:20:03 -0700 User-Agent: Thunderbird/3.0a2pre (Macintosh; 2008071516) MIME-Version: 1.0 To: Christian Stocker CC: PHPdev , Dmitry Stogov References: <4899C4B4.3060902@liip.ch> In-Reply-To: <4899C4B4.3060902@liip.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.lerdorf.com [204.11.219.139]); Thu, 07 Aug 2008 11:20:04 -0700 (PDT) Subject: Re: [PHP-DEV] include bug in 5.3 From: rasmus@lerdorf.com (Rasmus Lerdorf) Christian Stocker wrote: > Hi > > Since quite some time (weeks), I have this very strange and annoying > include bug in 5.3-dev and now I think is the time to report it :) > > The reproducable script is here: > > http://trash.chregu.tv/include-bug.php.txt > > In short, when I have > > foo/alpha (empty) > bar/alpha/bar.php > > and set the include path to foo/:bar/ > and then do > include("alpha/bar.php"); > it throws an not-found error. > > But if I remove foo/alpha, it works correctly. > > In the meantime (while I wrote this), I found a similar bug report: > > http://bugs.php.net/bug.php?id=45044 > > and added my script. > > Can please someone look into that, it's not an area where I feel > comfortable :) I have tried to reproduce this on both OSX and FreeBSD and so far I haven't had any luck. This is what I have: 11:18am trainburn-lm:~/Web> l foo/alpha/ total 0 drwxr-xr-x 2 rasmus users 68 Aug 7 11:10 ./ drwxr-xr-x 3 rasmus users 102 Aug 7 11:10 ../ 11:18am trainburn-lm:~/Web> l bar/alpha/ total 8 drwxr-xr-x 3 rasmus users 102 Aug 7 11:10 ./ drwxr-xr-x 3 rasmus users 102 Aug 7 11:10 ../ -rw-r--r-- 1 rasmus users 12 Aug 7 11:10 bar.php 11:18am trainburn-lm:~/Web> cat foo.php I am getting the contents of bar.php quite nicely both from the command line and through Apache. This should be really easy to debug with gdb, but it requires a reproducable case. -Rasmus