Bug #64239 [PATCH]: Debug backtrace changed behavior since 5.4.10 or 5.4.11
| From: | laruence@php.net | Date: | Thu, 21 Mar 2013 06:04:32 +0000 |
| Subject: | Bug #64239 [PATCH]: Debug backtrace changed behavior since 5.4.10 or 5.4.11 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177943@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64239&edit=1
ID: 64239
Patch added by: laruence@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.patch
Revision: 1363845872
URL: https://bugs.php.net/patch-display.php?bug=64239&patch=bug64239.patch&revision=1363845872
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2013-02-19 10:05:27] dmitry@php.net
Personally, I would remove traits at all :(
Of course, it's not a case, but we hardly ever going to introduce new trait related magic in
5.4.*
------------------------------------------------------------------------
[2013-02-19 09:04:02] kusmierz at o2 dot pl
Or please add magic constant, ie. __ALIASSED_METHOD__ or something (#61033)... The
backtrace code is just workaround for me in this case.
------------------------------------------------------------------------
[2013-02-19 08:43:01] laruence@php.net
yes, that alias name gave us too many pains :)...
add a new alias_name is a easy and clear way.
thanks
------------------------------------------------------------------------
[2013-02-19 07:11:45] dmitry@php.net
Laruence, you are right. Reflection, debug_backtrace() and get_class_methods() are affected.
It would be good to fix it, however, I don't see a good way to do it, and I don't like to
introduce a new hack. (e.g. resolving alias name by looking into hash table key).
Actually we have the same situation with class aliases.
In general, we can fix it in 5.5 using some inefficient way (e.g. add
op_array->alias_function_name)
Any ideas are welcome.
------------------------------------------------------------------------
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