Re: Memory Leak in Zend: Test case and leak

From: Date: Mon, 26 Jun 2000 18:23:31 +0000
Subject: Re: Memory Leak in Zend: Test case and leak
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22391@lists.php.net to get a copy of this message
It was a typo that lead me to finding this...I realize that it is not valid, in fact it's not what I want at all, I just thought it shouldn't leak... -- Joey Smith On Mon, 26 Jun 2000, Stanislav Malyshev wrote the following to Joey Smith : > JS>> Don't really have access to bugs.php.net where I am, > JS>> so I'm posting it here...will try to get it up on > JS>> bugs.php.net later. > JS>> > JS>> I realize that this script shouldn't do anything, but > JS>> it shouldn't leak memory, right? > > OK. You should define leak like this: > > function &leak() { > return $leaky; > } > > I.e., to declare leak() as returning by reference. Then, it doesn't leak. > > BTW, I don't quite understand why you needed this thing at all... I fear > it doesn't do what you think it does. > >

« previous php.dev (#22391) next »