Re: Globals unavailable, require oddity

From: Date: Fri, 14 Oct 2005 07:20:02 +0000
Subject: Re: Globals unavailable, require oddity
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-19612@lists.php.net to get a copy of this message
On Thu, 13 Oct 2005, Antony Dovgal wrote: > On 13.10.2005 20:51, Marcus Bointon wrote: > > > in a.inc.php: > > > > <?php > > $a = 1; > > ?> > > > > in b.class.php: > > > > <?php > > require 'a.inc.php'; > > class b { > > function test() { > > global $a; > > echo $a; > > } > > } > > ?> > > Works fine here. I can't reproduce it either with 4.4.0rc2-dev - and nothing from valgrind. Our huge application doesn't have any problems with it either. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#19612) next »