From: gary at garycarr dot net Operating system: Linux PHP version: 5.0.4 PHP Bug Type: Unknown/Other Function Bug description: Bug # 28444 is back again in 5.0.4
Description: ------------ bug #28444 is back again, it was fixed in 5.0.3, but now is back again in 5.0.4. This is a duplicate bug, but it has been fixed and now is problem again, resubmitting for that reason. Reproduce code: --------------- $query = '//menus'; $nodelist = $xpath->query($query); if (isset($nodelist)) { foreach ($nodelist as $node){ if ($node->hasAttributes()){ foreach ($node->attributes as $attribute) { echo nl2br(print_r($attribute,true)); } } } } Expected result: ---------------- the details of each $attribute; Actual result: -------------- PHP Error "Cannot access undefined property for object with overloaded property access" on foreach line... -- Edit bug report at http://bugs.php.net/?id=34140&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34140&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34140&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34140&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34140&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34140&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34140&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34140&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34140&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34140&r=support Expected behavior: http://bugs.php.net/fix.php?id=34140&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34140&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34140&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34140&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34140&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34140&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34140&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34140&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34140&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34140&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34140&r=mysqlcfg