php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51788 Segfault on get_defined_constants(TRUE)
Submitted: 2010-05-10 21:44 UTC Modified: 2010-05-10 21:51 UTC
From: whatrevolution at yahoo dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: whatrevolution at yahoo dot com
New email:
PHP Version: OS:

 

 [2010-05-10 21:44 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-10 21:51 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2010-05-10 21:51 UTC] johannes@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 22:18 UTC] whatrevolution at yahoo dot com
Removing suhosin, xdebug, and recompiling apache, did in fact remove the bug behavior.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC