Re: every return from a function now leaks (if the function is used as void)

From: Date: Fri, 19 Nov 1999 18:13:01 +0000
Subject: Re: every return from a function now leaks (if the function is used as void)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6512@lists.php.net to get a copy of this message
On Fri, 19 Nov 1999, Andi Gutmans wrote: > Update libzend and try again. > By the way, this whole issue of marking function calls whose return values > aren't being used made me implement a solution which should speed up > functions calls whose return values aren't being used. I hope it works. Let > me know. seems to work... thanx. > > Andi > > At 04:23 PM 11/19/99 +0100, Thies C. Arntzen wrote: > ><?php > >function leak_return() > >{ return "hallo"; > >} > >leak_return(); > >?> > > > >/dot/dc4/zend/php-dev/php4_cgi_debug/../php4/libzend/zend_execute.c(1537) > >: Freeing 0x001B4DF8 (6 bytes), script=test.php > >/dot/dc4/zend/php-dev/php4_cgi_debug/../php4/libzend/zend_variables.c(128) > >: Actual location (location was relayed) > > > >regards, > >tc > > --- > Andi Gutmans <andi@zend.com> > http://www.zend.com/ > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#6512) next »