|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31091 Apache2 crash with SimpleXML and XPath
Submitted: 2004-12-14 17:26 UTC Modified: 2005-03-09 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: cpuidle at gmx dot de Assigned:
Status: No Feedback Package: SimpleXML related
PHP Version: 5CVS-2005-01-10 OS: WinXP SP1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cpuidle at gmx dot de
New email:
PHP Version: OS:


 [2004-12-14 17:26 UTC] cpuidle at gmx dot de
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.'"]');


# crash here!
foreach ($node->ListOfRepositoryWfStepIOArgument->RepositoryWfStepIOArgument as $wfArg)

Expected result:
no crash?!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-14 17:31 UTC] cpuidle at gmx dot de
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)
 [2005-01-10 16:29 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-01-10 18:03 UTC] cpuidle at gmx dot de
No, still crashes :(
 [2005-02-28 21:17 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-03-09 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 04:01:28 2024 UTC