|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27815 SourceForge XPath.class.php 3.4 Testsuite crashes Apache 2.0.49
Submitted: 2004-03-31 15:09 UTC Modified: 2005-01-18 11:35 UTC
Avg. Score:3.0 ± 1.3
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: wf at bitplan dot com Assigned:
Status: No Feedback Package: DOM XML related
PHP Version: 5.0.0RC1 OS: WindowsXP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-03-31 15:09 UTC] wf at bitplan dot com
We are using PHP5.0RC1 with Apache 2.0.49 and are heavily relying to XPath.Class.php which you'll find on We now tried to use the testsuite for XPath.Class.php to trace down the problem and it reproducibly crashes Apache any time you run it.

The environment is 1 GByte MainMemory machine with a 64 MByte limit for PHP Scripts. 
max_execution_time = 90     ; Maximum execution time of 
memory_limit = 64M      ; Maximum amount of memory a script may consume (8MB)

The apache error log shows: 
[Wed Mar 31 22:15:16 2004] [notice] Parent: child process exited with status 128 -- Restarting.

Reproduce code:
Download XClass.path.php and Testsuite from

change line 4614 in XPatch.class.php to avoid a PHP5 fatal error:
        //$this = FALSE; // PHP5 incompatible !!!

run testsuite with
and click on "Run XPath tests"

Expected result:
testsuite should run without crash

Actual result:
Apache crashes immediately


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-10 15:19 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-01-18 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".
 [2005-01-18 10:43 UTC] wf at bitplan dot com
I'm not using XClass.path any more due to the Apache crashes this used to cause
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 09:01:32 2024 UTC