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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to