From: cpuidle at gmx dot de
Operating system: WinXP SP1
PHP version: 5.0.2
PHP Bug Type: Reproducible crash
Bug description: Apache2 crash with SimpleXML and XPath
Description:
------------
I'm using xpath to retrieve a child node from an xml structure, then loop
over subelements of this node. This crashes reproducibly at the foreach
loop (apache log file: child process exited with status 3221225477 --
Restarting)
Same happens with latest 5.0.3RC2
Reproduce code:
---------------
$step = 'FindThisNode';
$node =
$xml->xpath('ListOfRepositoryWorkflowProcess/RepositoryWorkflowProcess/ListOfRepositoryWfStep/RepositoryWfStep[Name3="'.$step.'"]');
print_r($node);
# crash here!
foreach
($node->ListOfRepositoryWfStepIOArgument->RepositoryWfStepIOArgument as
$wfArg)
{
}
Expected result:
----------------
no crash?!
--
Edit bug report at http://bugs.php.net/?id=31091&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31091&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31091&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31091&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31091&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31091&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31091&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31091&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31091&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31091&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31091&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31091&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31091&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31091&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31091&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31091&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31091&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31091&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31091&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31091&r=mysqlcfg