#31091 [Fbk->NoF]: Apache2 crash with SimpleXML and XPath
ID: 31091
Updated by: php-bugs@lists.php.net
Reported By: cpuidle at gmx dot de
-Status: Feedback
+Status: No Feedback
Bug Type: SimpleXML related
Operating System: WinXP SP1
PHP Version: 5CVS-2005-01-10
New Comment:
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".
Previous Comments:
------------------------------------------------------------------------
[2005-02-28 21:17:21] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-01-10 18:03:07] cpuidle at gmx dot de
No, still crashes :(
------------------------------------------------------------------------
[2005-01-10 16:29:51] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-12-14 17:31:54] 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)
------------------------------------------------------------------------
[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
Thread (6 messages)