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

2005-08-10 Thread Ron Korving
Yup, there's no difference. What Wez said makes sense: > foreach() 'copies' $data, and it's the copy that isn't going away. > > --Wez." Ron "Markus Fischer" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > This is also apply if you use the reference operator? > > foreach ($data a

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

2005-08-10 Thread Ron Korving
Thanks, that's all I would ever ask for :) Ron "Andi Gutmans" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi Ron, > > Indeed exception may lead to leaks in certain cases. We do try and cleanup > as much as possible but the situation you describe is hard to detect. I > will how

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

2005-08-10 Thread Markus Fischer
This is also apply if you use the reference operator? foreach ($data as &$lines) { .. ? - Markus Wez Furlong wrote: foreach() 'copies' $data, and it's the copy that isn't going away. --Wez. On 8/10/05, Ron Korving <[EMAIL PROTECTED]> wrote: "Derick Rethans" <[EMAIL PROTECTED]> schreef in

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

2005-08-10 Thread Wez Furlong
foreach() 'copies' $data, and it's the copy that isn't going away. --Wez. On 8/10/05, Ron Korving <[EMAIL PROTECTED]> wrote: > "Derick Rethans" <[EMAIL PROTECTED]> schreef in bericht > news:[EMAIL PROTECTED] > > On Wed, 10 Aug 2005, Ron Korving wrote: > > > > > My situation is parsing a number of

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

2005-08-10 Thread Ron Korving
"Derick Rethans" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > 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 thr

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

2005-08-10 Thread David Zülke
I concur. - David > -Original Message- > From: Ron Korving [mailto:[EMAIL PROTECTED] > 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 situatio

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

2005-08-10 Thread Derick Rethans
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

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

2005-08-10 Thread Ron Korving
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