Re: nested includes fails?

From: Date: Wed, 05 May 2004 06:32:26 +0000
Subject: Re: nested includes fails?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-9665@lists.php.net to get a copy of this message
I tried this and it didn't fail... Jevon ----- Original Message ----- From: "Tumurbaatar S." <tumurbaatar@datacom.mn> To: <internals@lists.php.net> 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 > <?php > require_once("common.php"); > class A { } > ?> > \inc\b.php > <?php > require_once("common.php"); > class B {} > ?> > > //common.php does not include anything > \inc\common.php > <?php > class C { } > ?> > > //this works. Main scripts include 'common.php' indirectly > \member\member.php > <?php > require_once("../inc/a.php"); > ?> > > > //this fails:redeclaration of class C > \member\member3.php > <?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 > >

« previous php.internals (#9665) next »