ID: 31091
User updated by: cpuidle at gmx dot de
Reported By: cpuidle at gmx dot de
Status: Open
Bug Type: Reproducible crash
Operating System: WinXP SP1
PHP Version: 5.0.2
New Comment:
The same code, but without the xpath expression does not crash (and of
course not work...):
foreach
($xml->ListOfRepositoryWorkflowProcess->RepositoryWorkflowProcess->ListOfRepositoryWfStep->RepositoryWfStep->ListOfRepositoryWfStepIOArgument->RepositoryWfStepIOArgument
as $wfArg)
Previous Comments:
------------------------------------------------------------------------
[2004-12-14 17:26:19] cpuidle at gmx dot de
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 this bug report at http://bugs.php.net/?id=31091&edit=1