On 06/16/2011 05:32 PM, Stas Malyshev wrote: > Hi! > >> I'm not saying there aren't any. There are known leaks in compile_file() >> when you throw an exception like that, so if you call a huge amount of >> these within a single request, you are going to have problems. But that > > You actually can't call huge amount of these in one request, as this > particular leak is caused by bailing out from zend_execute_scripts, > which causes main op array not be freed. zend_execute_scripts() is > called only once, so you can't have this leak multiple times as far as I > can see. Whatever caused the original problem, it's highly unlikely it > is this leak.
I was thinking it was a bunch of nested eval()'s that might cause this. An exit from within an eval'ed op_array would cause this same leak I think. But yes, I agree, in order to leak 128M or whatever it was he said, it is unlikely that it is due to this. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php