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
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
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
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
"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
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
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
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