RE: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions

From: Date: Wed, 10 Aug 2005 12:59:50 +0000
Subject: RE: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17783@lists.php.net to get a copy of this message
I concur.

- David



> -----Original Message-----
> From: Ron Korving [mailto:r.korving@xit.nl]
> Sent: Wednesday, August 10, 2005 2:53 PM
> To: internals@lists.php.net
> Subject: Re: [PHP-DEV] Re: drastic memory consumption with a
> sequenceofexceptions
> 
> 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).
> 
> 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.
> 
> Ron
> 
> 
> "Derick Rethans" <derick@php.net> schreef in bericht
> news:Pine.LNX.4.62.0508101444230.3884@localhost...
> > On Wed, 10 Aug 2005, Ron Korving wrote:
> >
> > > Perhaps it would require an revised garbage collection mechanism? If
> that's
> > > the case and you think it's worth investing time in, I think it would
> be
> > > something for the next major version (6).
> >
> > I think it would be better not to abuse Exceptions like this. They are
> > for exceptional states, which should result in a graceful shutdown of
> > your application. In that case 'leaking' the memory to the end of the
> > request isn't a real problem anyway.
> >
> > Derick
> 
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


Thread (19 messages)

« previous php.internals (#17783) next »