#32104 [Fbk-Opn]: foreach on $dom-documentElement-childNode causes strange error
ID: 32104 User updated by: ppetermann at vivaplus dot tv Reported By: ppetermann at vivaplus dot tv -Status: Feedback +Status: Open Bug Type: DOM XML related Operating System: tested on Linux and Solaris PHP Version: 5CVS-2005-02-25 (dev) New Comment: Those where fresh builds of php5, anyways tried it with rebuilding, as expected: didnt change anything. cant give you a link to the phpinfo since our developement environment aint reachable from the net, but you may use the copy ive put at http://disasta.devedge.info/stuff/phpinfo.htm best regards, Peter Previous Comments: [2005-02-25 20:39:56] [EMAIL PROTECTED] still cannot reproduce and this time on a fresh linux box. can you try rebuilding your php (making sure to clean it first) and if still doesnt work post a link to you phpinfo. [2005-02-25 15:08:16] ppetermann at vivaplus dot tv hi, php5-STABLE-200502250930 is the snapshot i used, well, the missing s was an error in my report, in my code its with the s (as i said its working on php 5.0.3 (in production) [2005-02-25 15:01:57] [EMAIL PROTECTED] sure you are using the latest snapshot? using your code I get (both with latest 5_0 and HEAD): Warning: Invalid argument supplied for foreach() in N:\CVS Projects\php5_0\Debug_TS\bug32104.php on line 4 using -childNodes (which is correct) works fine [2005-02-25 11:44:15] ppetermann at vivaplus dot tv Description: doing a foreach loop on: $dom-documentElement-childNode causes an Fatal Error: Fatal error: Cannot access undefined property for object with overloaded property access in FILE on line LINENUMBEROFFOREACH this didnt happen in PHP5 = 5.0.3 Reproduce code: --- ?php $dom = new DomDocument(); $dom-load(xmlfile.xml); foreach($dom-documentElement-childNode as $node) { echo foo\n; } ? Expected result: a foo\n for each childnode of the document element Actual result: -- Fatal error: Cannot access undefined property for object with overloaded property access in /foo/bar/myfile.php on line 4 -- Edit this bug report at http://bugs.php.net/?id=32104edit=1
#32104 [NEW]: foreach on $dom-documentElement-childNode causes strange error
From: ppetermann at vivaplus dot tv Operating system: tested on Linux and Solaris PHP version: 5CVS-2005-02-25 (dev) PHP Bug Type: DOM XML related Bug description: foreach on $dom-documentElement-childNode causes strange error Description: doing a foreach loop on: $dom-documentElement-childNode causes an Fatal Error: Fatal error: Cannot access undefined property for object with overloaded property access in FILE on line LINENUMBEROFFOREACH this didnt happen in PHP5 = 5.0.3 Reproduce code: --- ?php $dom = new DomDocument(); $dom-load(xmlfile.xml); foreach($dom-documentElement-childNode as $node) { echo foo\n; } ? Expected result: a foo\n for each childnode of the document element Actual result: -- Fatal error: Cannot access undefined property for object with overloaded property access in /foo/bar/myfile.php on line 4 -- Edit bug report at http://bugs.php.net/?id=32104edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32104r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32104r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32104r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32104r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32104r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32104r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32104r=needscript Try newer version: http://bugs.php.net/fix.php?id=32104r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32104r=support Expected behavior: http://bugs.php.net/fix.php?id=32104r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32104r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32104r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32104r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32104r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32104r=dst IIS Stability: http://bugs.php.net/fix.php?id=32104r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32104r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32104r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32104r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32104r=mysqlcfg
#32104 [Fbk-Opn]: foreach on $dom-documentElement-childNode causes strange error
ID: 32104 User updated by: ppetermann at vivaplus dot tv Reported By: ppetermann at vivaplus dot tv -Status: Feedback +Status: Open Bug Type: DOM XML related Operating System: tested on Linux and Solaris PHP Version: 5CVS-2005-02-25 (dev) New Comment: hi, php5-STABLE-200502250930 is the snapshot i used, well, the missing s was an error in my report, in my code its with the s (as i said its working on php 5.0.3 (in production) Previous Comments: [2005-02-25 15:01:57] [EMAIL PROTECTED] sure you are using the latest snapshot? using your code I get (both with latest 5_0 and HEAD): Warning: Invalid argument supplied for foreach() in N:\CVS Projects\php5_0\Debug_TS\bug32104.php on line 4 using -childNodes (which is correct) works fine [2005-02-25 11:44:15] ppetermann at vivaplus dot tv Description: doing a foreach loop on: $dom-documentElement-childNode causes an Fatal Error: Fatal error: Cannot access undefined property for object with overloaded property access in FILE on line LINENUMBEROFFOREACH this didnt happen in PHP5 = 5.0.3 Reproduce code: --- ?php $dom = new DomDocument(); $dom-load(xmlfile.xml); foreach($dom-documentElement-childNode as $node) { echo foo\n; } ? Expected result: a foo\n for each childnode of the document element Actual result: -- Fatal error: Cannot access undefined property for object with overloaded property access in /foo/bar/myfile.php on line 4 -- Edit this bug report at http://bugs.php.net/?id=32104edit=1