php.net |  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
Votes:5
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wf at bitplan dot com
New email:
PHP Version: OS:

 

 [2004-03-31 15:09 UTC] wf at bitplan dot com
Description:
------------
We are using PHP5.0RC1 with Apache 2.0.49 and are heavily relying to XPath.Class.php which you'll find on sourceforge.net. 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)
extension=php_mysql.dll

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 
http://sourceforge.net/projects/phpxpath/

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

run testsuite with
http://localhost/XPath/testBench/validationTests/index.php
and click on "Run XPath tests"

Expected result:
----------------
testsuite should run without crash

Actual result:
--------------
Apache crashes immediately

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-10 15:19 UTC] 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-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-2019 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 16:01:26 2019 UTC