Re: Re: drastic memory consumption with a sequenceofexceptions

From: Date: Wed, 10 Aug 2005 12:58:20 +0000
Subject: Re: Re: drastic memory consumption with a sequenceofexceptions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-17782@lists.php.net to get a copy of this message
On Wed, 10 Aug 2005, Ron Korving wrote: > My situation is parsing a number of XML-reports. If parsing goes wrong in > any way (XML parsing fails, XML validation fails, database insertion fails), > I want to throw an exception. There's a script that batch-processes these > files. I want to collect exceptions and give that feedback to the user. I > wouldn't consider this bad practice myself (but of course, I'm not very > objective in this situation). You can still clean up your memory before throwing the exception... > Even if I'm wrong about that, I'm not the only PHP-user and it's my humble > opinion that the engine should be solid enough to deal with this. It's not easy at all, it would basically mean a full rewrite of the engine's refcounting/garbage collection system, and also redoing all extensions to use this mechanism. I think that's a bit too much to ask just so that you don't get a leak if you're doing something 'weird'. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#17782) next »