Re: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Szczepan Hołyszewski
Martin Scotta wrote: Fatal error: Call to a member function getAttribute() on a non-object in testme.php on line *121* Yes, this is _how_ the unmodified script errors out. It is not shown in the output I attached in my previous message because display_errors is Off in my php.ini, and the

RE: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Ford, Mike
-Original Message- From: Szczepan Hołyszewski [mailto:webmas...@strefarytmu.pl] Sent: 26 August 2009 08:48 Martin Scotta wrote: Fatal error: Call to a member function getAttribute() on a non- object in testme.php on line *121* Yes, this is _how_ the unmodified script errors

Re: [PHP] DOMNode children iteration (was Re: array() returns something weird)

2009-08-26 Thread Szczepan Hołyszewski
I really can't see why you'd want to use references in the posted loop anyway -- it's not likely to gain you any performance, and, as I understand it, may actually run more slowly than the non-reference version. The why is irrelevant. It is perfectly legal PHP, and while it might be illegal