The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000355
======================================================================
Reporter: ozgur
Handler:
======================================================================
Project: Xdebug
Bug ID: 355
Category: Debug client (console)
Reproducibility: always
Severity: major
Priority: normal
Status: new
Operating System: Debian
PHP Version: 5.2.5
Xdebug Version: 2.0.2
======================================================================
Date Submitted: 2008-02-26 23:10 CET
Last Modified: 2008-02-26 23:10 CET
======================================================================
Summary: Invalid Trace File
Description:
In trace files, the same function number is shared between completely
different functions (ie. function number collusion). I suspect it is
related with handling of register_shutdown_function.
I can reproduce the situation with the following code:
<?php
function foo()
{
echo "Hi";
}
function bar()
{
echo "There";
}
register_shutdown_function("bar");
foo();
?>
The trace file output is:
Version: 2.0.2
TRACE START [2008-02-26 17:54:42]
1 0 0 0.003124 77936 {main} 1
/var/www/default/test.php 0
2 1 0 0.003831 77984 register_shutdown_function
0 /var/www/default/test.php 13
2 1 1 0.003971 78080
2 2 0 0.003998 78128 foo 1
/var/www/default/test.php 15
2 2 1 0.004064 78128
1 0 1 0.004082 78128
1 2 0 0.004122 76844 bar 1
/var/www/default/test.php 0
1 2 1 0.004145 76844
0.005341 7044
TRACE END [2008-02-26 17:54:42]
as you see both "foo" and "bar" functions have function # of 2.
Thanks!
======================================================================
Bug History
Date Modified Username Field Change
======================================================================
2008-02-26 23:10ozgur New Bug
2008-02-26 23:10ozgur Bug Monitored: ozgur
======================================================================
Received on Tue Feb 26 2008 - 23:10:53 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST