[patch] Callbacks bug/change request
| From: | Etienne Kneuss | Date: | Wed, 30 May 2007 14:38:35 +0000 |
| Subject: | [patch] Callbacks bug/change request | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-29953@lists.php.net to get a copy of this message | ||
Hi internals,
It seems that there is a bug in the way some callbacks are handled. For
instance:
array('B', 'parent::who');
Here, the classname 'B' will only be used for inheritance checks with
the current scope,
but the actual resolution will be made using the current scope, and
'parent::who'.
According to Marcus, this is wrong, so here is two patches (+ tests)
meant for HEAD [1]
and the 5_2 branch (>5.2.3) [2].
Thanks for your consideration.
Regards
1: http://patches.colder.ch/Zend/callbacks_HEAD.patch?markup
2: http://patches.colder.ch/Zend/callbacks_5_2.patch?markup
--
Etienne Kneuss
http://www.colder.ch
colder@php.net
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal