|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-01-12 06:48 UTC] taneli at crasman dot fi
Description:
------------
I can't reproduce this on a standalone script linting the same code, but in my app it crashes httpd.
PHP 5.2.0 release version.
Reproduce code:
---------------
Sorry, can't give you an reproducible test case.
Expected result:
----------------
No crash :)
Actual result:
--------------
0xb774ca49 in zend_get_zval_ptr_ptr () from /etc/httpd/modules/libphp5.so
(gdb) backtrace
#0 0xb774ca49 in zend_get_zval_ptr_ptr () from /etc/httpd/modules/libphp5.so
#1 0xb6598ae2 in php_runkit_sandbox_sapi_header_handler (
sapi_header=0xbfeb08d0, sapi_headers=0x8b4bb18, tsrm_ls=0x5)
at /usr/src/redhat/BUILD/runkit-0.9/runkit_sandbox.c:1102
#2 0xb767efaf in sapi_header_op () from /etc/httpd/modules/libphp5.so
#3 0xb767ec09 in sapi_add_header_ex () from /etc/httpd/modules/libphp5.so
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 13:00:01 2025 UTC |
Ok, so I dug in a little deeper and found out that runkit_lint() and runkit_lint_file() only crash when invoked through Apache. Running the same script through commandline works just fine. So a script for reproducing the error is this: <?php { var_dump(runkit_lint('$foo = 1;')); }?> Running this through Apache crashes httpd, but from commandline: # php5 linttest.php bool(true)