Re: Leaking references

From: Date: Wed, 28 Mar 2001 16:58:22 +0000
Subject: Re: Leaking references
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-50147@lists.php.net to get a copy of this message
Hi Wez! On Wed, 28 Mar 2001, Wez Furlong wrote: > [I can't reach the PHP web site (100% packet loss), so I can't open a bug > report at this time] > > I have found a leak in the Zend engine: > > class A > { > var $t = null; > > function &run(&$t) > { > $this->t = &$t; > return $this->t->run(); > } > > } > > class C { > var $obj = null; > > function &load_and_run() > { > $this->obj = & new A; > return $this->obj->run($this); > } > > function &run() > { > return ""; > } > } > > function &load_it() > { > $t =& new C; > echo $t->load_and_run(); > } > This example looks damn similar with some code I have and produced the same warnings (#9953). So I changed mine to duplicate. -- teodor

« previous php.dev (#50147) next »