From:             wf at bitplan dot com
Operating system: WindowsXP
PHP version:      5.0.0RC1
PHP Bug Type:     Reproducible crash
Bug description:  SourceForge XPath.class.php 3.4 Testsuite crashes Apache 2.0.49

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

-- 
Edit bug report at http://bugs.php.net/?id=27815&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27815&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27815&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27815&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27815&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27815&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27815&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27815&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27815&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27815&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27815&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27815&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27815&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27815&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27815&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27815&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27815&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27815&r=float

Reply via email to