Edit report at https://bugs.php.net/bug.php?id=64239&edit=1
ID: 64239
Patch added by: dmitry@php.net
Reported by: kusmierz at o2 dot pl
Summary: Debug backtrace changed behavior since 5.4.10 or
5.4.11
Status: Assigned
Type: Bug
Package: *General Issues
Operating System: Ubuntu,Debian,Windows
PHP Version: 5.4.11
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: bug64239-2.patch
Revision: 1363856795
URL: https://bugs.php.net/patch-display.php?bug=64239&patch=bug64239-2.patch&revision=1363856795
Previous Comments:
------------------------------------------------------------------------
[2013-03-21 08:19:51] laruence@php.net
new patch attached, which fixed that issue you mentioned
------------------------------------------------------------------------
[2013-03-21 08:18:28] laruence@php.net
The following patch has been added/updated:
Patch Name: bug64329.patch
Revision: 1363853908
URL: https://bugs.php.net/patch-display.php?bug=64239&patch=bug64329.patch&revision=1363853908
------------------------------------------------------------------------
[2013-03-21 08:01:08] dmitry@php.net
I've added another patch (bug64239-2.patch), but it's incorrect anyway :(
Test script:
---------------
<?php
class A {
public function test() {}
}
class B {
use T2 { t2method as Bmethod; }
}
trait T2 {
public function t2method() {
debug_print_backtrace();
}
}
$b = new B();
$b->t2method();
$b->Bmethod();
Expected result:
----------------
#0 B->t2method() called at [test.php:14]
#0 B->Bmethod() called at [test.php:15]
Actual result:
--------------
#0 B->Bmethod() called at [test.php:14]
#0 B->Bmethod() called at [test.php:15]
------------------------------------------------------------------------
[2013-03-21 06:04:32] laruence@php.net
The following patch has been added/updated:
Patch Name: bug64239.patch
Revision: 1363845872
URL: https://bugs.php.net/patch-display.php?bug=64239&patch=bug64239.patch&revision=1363845872
------------------------------------------------------------------------
[2013-03-20 07:00:33] laruence@php.net
an idea is search the function in ce->function table to get the lowercase alias
name, then search in ce->traits_aliases for the origin function name,
patch will be attached, but it will definitely slowdown the debug_backtrace.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64239--
Edit this bug report at https://bugs.php.net/bug.php?id=64239&edit=1