The following bug has been CLOSED
======================================================================
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: closed
Operating System: Linux 2.4.18-1-686
PHP Version: 5.0.4
Xdebug Version: 1.3.2
======================================================================
Date Submitted: 2005-06-14 22:15 CEST
Last Modified: 2005-06-15 21:24 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
{
}
?>
======================================================================
----------------------------------------------------------------------
derick - 2005-06-15 21:24 CEST
----------------------------------------------------------------------
This should have been fixed in the CVS version some time ago. Please try
2.0.0beta3 and report back if it's not fixed yet.
Bug History
Date Modified Username Field Change
======================================================================
2005-06-14 22:15kumar303 New Bug
2005-06-14 22:15kumar303 Bug Monitored: kumar303
2005-06-15 21:24derick Bugnote Added: 0000260
2005-06-15 21:24derick PHP Version 5.0.3-dev => 5.0.4
2005-06-15 21:24derick Status new => closed
======================================================================
Received on Wed Jun 15 2005 - 21:24:24 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST