Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9658 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96836 invoked by uid 1010); 4 May 2004 11:50:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96753 invoked from network); 4 May 2004 11:50:41 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 4 May 2004 11:50:41 -0000 Received: (qmail 24435 invoked from network); 4 May 2004 11:50:37 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 4 May 2004 11:50:37 -0000 Message-ID: <5.1.0.14.2.20040504145025.02839008@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 04 May 2004 14:50:36 +0300 To: "Jevon Wright" , "Tumurbaatar S." , In-Reply-To: <049c01c431cc$c9c33740$0a00a8c0@home.jevon.org> References: <20040504052554.60192.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] nested includes fails? From: andi@zend.com (Andi Gutmans) Can you give it a try with relative patches the way Tumurbaatar did? Andi At 11:41 PM 5/4/2004 +1200, Jevon Wright wrote: >I tested it on PHP 5 RC1, Win XP SP1, IIS 5.1 running as CGI - it didn't >fail. >I tried it on PHP 5 RC2, Win XP SP1, IIS 5.1 running as CGI - it didn't fail >then, either. >(Calling c.php) > >a.php > > >b.php > > >c.php > require_once("a.php"); > require_once("b.php"); > ?> > >common.php > > >Jevon > >----- Original Message ----- >From: "Tumurbaatar S." >To: >Sent: Tuesday, May 04, 2004 5:25 PM >Subject: [PHP-DEV] nested includes fails? > > > > 'common.php' contains some class definition and PHP5 fails with > > 'PHP Fatal error: Cannot redeclare class ... in common.php...' when > > script C.php starts. The file including map is: > > > > A.php: require_once(common.php) > > B.php: require_once(common.php) > > C.php: > > require_once(A.php) > > require_once(B.php) > > > > That is bug? When only one file is included (A or B), > > the contents of 'common.php' is available, i.e. nested require > > works. Only fails when nested and multiple require. > > > > P.S. I use PHP5 RC2 running as CGI on WinXP/IIS. > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php