Re: Memory Leak in Zend: Test case and leak

From: Date: Mon, 26 Jun 2000 12:59:46 +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-22343@lists.php.net to get a copy of this message
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. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#22343) next »