Edit report at http://bugs.php.net/bug.php?id=51788&edit=1
ID: 51788 Comment by: whatrevolution at yahoo dot com Reported by: whatrevolution at yahoo dot com Summary: Segfault on get_defined_constants(TRUE) Status: Bogus Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: 5.3.2 New Comment: Removing suhosin, xdebug, and recompiling apache, did in fact remove the bug behavior. Previous Comments: ------------------------------------------------------------------------ [2010-05-10 21:51:32] johan...@php.net Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. Suhosin and xdebug change the engine in a way we can't support. ------------------------------------------------------------------------ [2010-05-10 21:44:50] whatrevolution at yahoo dot com Description: ------------ get_defined_constants(TRUE) started throwing me segfaults today, for apparently no reason. Worked yesterday, doesn't work today. Test script does only that function and still throws back no data. I can't rule out server configuration, but I have tested for it somewhat, with same results. Apache mod_php5 produces the segfault. PHP CLI does not. bug 15614 Had this problem with print_r(get_defined_constants(TRUE)) in 2002. My segfault is happening with get_defined_constants(TRUE) alone. Ubuntu 10.04 Linux 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 PHP 5.3.2-1ubuntu4 with Suhosin-Patch (built: Apr 9 2010 08:18:14) Zend Engine v2.3.0 with Xdebug v2.0.5 with Suhosin v0.9.29 Apache/2.2.14 (Ubuntu) Test script: --------------- <?php print_r(get_defined_constants(TRUE)); Expected result: ---------------- Function works. Actual result: -------------- [Mon May 10 15:08:44 2010] [notice] child pid 21884 exit signal Segmentation fault (11) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51788&edit=1