[xdebug-dev] Bug 0000241: Crash in xdebug_get_function_stack()

From: <noreply[@]lists.xdebug.org>
Date: Sat, 17 Feb 2007 23:23:52 +0100

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000241
======================================================================
Reporter: magnus
Handler:
======================================================================
Project: Xdebug
Bug ID: 241
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System: Debian 3.1
PHP Version: 5.2-dev
Xdebug Version: 2.0.0rc4-dev
======================================================================
Date Submitted: 2007-02-15 17:55 CET
Last Modified: 2007-02-17 23:23 CET
======================================================================
Summary: Crash in xdebug_get_function_stack()
Description:
This code segv:
<?php
function error_handler($errno, $string, $file, $line, $context)
{
        $entry = Error_Class::newError();
}

class Error_Class
{
        public static function newError($errno = false)
        {
                return new Error_Entry(false, $errno);
        }

        public static function getBT()
        {
                $tmp = xdebug_get_function_stack();
        }

}

class Error_Entry
{
        public function __construct($base, $errno)
        {
                Error_Class::getBT();
        }
}

set_error_handler('error_handler');

$tmp = explode('/', trim($_SERVER['FOO'], '/'));
?>
======================================================================

----------------------------------------------------------------------
 derick - 2007-02-17 23:23 CET
----------------------------------------------------------------------
Fixed in CVS, thanks for your report.

Bug History
Date Modified Username Field Change
======================================================================
2007-02-15 17:55magnus New Bug
2007-02-15 17:55magnus Bug Monitored: magnus
2007-02-17 23:23derick Bugnote Added: 0000568
2007-02-17 23:23derick Status new => closed
======================================================================
Received on Sat Feb 17 2007 - 23:23:54 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST