From:
Operating system: Linux
PHP version: 5.3.2
Package: Reproducible crash
Bug Type: Bug
Bug description:Segfault on get_defined_constants(TRUE)
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 bug report at http://bugs.php.net/bug.php?id=51788&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51788&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51788&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51788&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51788&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51788&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51788&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51788&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51788&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51788&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51788&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51788&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51788&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51788&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51788&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51788&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51788&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51788&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51788&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51788&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51788&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51788&r=mysqlcfg