From:             mail at patrickwitte dot de
Operating system: *
PHP version:      5.0.0RC1
PHP Bug Type:     Reproducible crash
Bug description:  Segfault in combination of php_check_syntax() and exit.

Description:
------------
This happens no matter if the checked file is syntactically ok or not or
even doesn't exists.

In all cases the result of php_check_syntax() is the expexted, but if exit
(or die()) is called afterwards you get a segfault.

Experienced with sapi-module and cli on linux and cli on win32.
(win32-sapi not tested)

Reproduce code:
---------------
<?php

echo php_check_syntax(__FILE__) ? "Ok" : "failed";

exit;

?>

Expected result:
----------------
Ok

Actual result:
--------------
Ok



segfault



Backtrace:

#0  _emalloc (size=Cannot access memory at address 0xc

) at /home/patrick/php-5.0.0RC1/Zend/zend_alloc.c:140

140             CALCULATE_REAL_SIZE_AND_CACHE_INDEX(size);



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

Reply via email to