logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Bug 0000129: Xdebug causes PHP segfault with __autoload() and "new Obj" in : msg#00004

Subject: Bug 0000129: Xdebug causes PHP segfault with __autoload() and "new Obj" in function call
The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000129
======================================================================
Reporter:                   kumar303
Handler:                    
======================================================================
Project:                    Xdebug
Bug ID:                     129
Category:                   Usage problems
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Operating System:           Linux 2.4.18-1-686
PHP Version:                5.0.3-dev
Xdebug Version:             1.3.2
======================================================================
Date Submitted:             2005-06-14 22:15 CEST
Last Modified:              2005-06-14 22:15 CEST
======================================================================
Summary:                    Xdebug causes PHP segfault with __autoload() and 
"new Obj" in function call
Description: 
PHP version 5.0.4! (not in select box)

Put test_object.php and test_autoload_crash.php in the same directory. 
Run the script "test_autoload_crash.php" in the shell or web browser; it
segfaults every time for me.
When I turn off xdebug, no segfault.

test_autoload_crash.php:
<?php

function __autoload($class_name)
{
    require_once strtolower($class_name) . '.php';
}

class Stub
{
    function foo($obj)
    {
        print "If you are reading this then there was no segfault";
    }
}

// the old way (comment out __autoload() ), this works ...
//require_once 'test_object.php';

$stub = new Stub;
$stub->foo(new Test_Object);

?>

test_object.php:
<?php

class Test_Object
{
    
}

?>
======================================================================

Bug History
Date Modified  Username       Field                    Change              
======================================================================
2005-06-14 22:15kumar303       New Bug                                      
2005-06-14 22:15kumar303       Bug Monitored: kumar303                      
======================================================================




<Prev in Thread] Current Thread [Next in Thread>