Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9665 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82640 invoked by uid 1010); 5 May 2004 06:31:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82583 invoked from network); 5 May 2004 06:31:44 -0000 Received: from unknown (HELO mta204-rme.xtra.co.nz) (210.86.15.147) by pb1.pair.com with SMTP; 5 May 2004 06:31:44 -0000 Received: from web4-rme.xtra.co.nz ([210.86.15.140]) by mta204-rme.xtra.co.nz with ESMTP id <20040505063142.FUNV7803.mta204-rme.xtra.co.nz@web4-rme.xtra.co.nz>; Wed, 5 May 2004 18:31:42 +1200 Received: from galaxy ([219.89.128.128]) by web4-rme.xtra.co.nz with ESMTP id <20040505063142.SYNX12806.web4-rme.xtra.co.nz@galaxy>; Wed, 5 May 2004 18:31:42 +1200 Message-ID: <059b01c4326a$bc9f3890$0a00a8c0@home.jevon.org> To: "Tumurbaatar S." , References: <20040504052554.60192.qmail@pb1.pair.com> <5.1.0.14.2.20040504145025.02839008@127.0.0.1> <04c101c431dd$f85e4e80$0a00a8c0@home.jevon.org> <20040505013226.15836.qmail@pb1.pair.com> Date: Wed, 5 May 2004 18:32:26 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: [PHP-DEV] nested includes fails? From: jevon@jevon.org ("Jevon Wright") I tried this and it didn't fail... Jevon ----- Original Message ----- From: "Tumurbaatar S." To: Sent: Wednesday, May 05, 2004 1:32 PM Subject: Re: [PHP-DEV] nested includes fails? > Hi, Jevon, > Mine is not so complex: > > //all files in 'inc' include 'common.php' > \inc\a.php > require_once("common.php"); > class A { } > ?> > \inc\b.php > require_once("common.php"); > class B {} > ?> > > //common.php does not include anything > \inc\common.php > class C { } > ?> > > //this works. Main scripts include 'common.php' indirectly > \member\member.php > require_once("../inc/a.php"); > ?> > > > //this fails:redeclaration of class C > \member\member3.php > require_once("../inc/a.php"); > require_once("../inc/b.php"); > ?> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >