Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9676 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33168 invoked by uid 1010); 6 May 2004 04:25:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33051 invoked by uid 1007); 6 May 2004 04:25:25 -0000 Message-ID: <20040506042521.32973.qmail@pb1.pair.com> To: internals@lists.php.net 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> <059b01c4326a$bc9f3890$0a00a8c0@home.jevon.org> Date: Thu, 6 May 2004 13:25:21 +0900 Lines: 64 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Posted-By: 202.179.19.82 Subject: Re: [PHP-DEV] nested includes fails? From: tumurbaatar@datacom.mn ("Tumurbaatar S.") Yes, mine works too. After you reply I tested it without abs paths and that worked. May be there was some error in my include scripts because after my 1st post I did many changes in them. Though I wonder what was wrong in my prior code. Thank you all! "Jevon Wright" wrote in message news:059b01c4326a$bc9f3890$0a00a8c0@home.jevon.org... > 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 > > > >