Stanislav Malyshev wrote:
EG(scope) is used by zend_u_fetch_class to get the parent/current class, I'm only altering it temporarily before zend_u_fetch_class and restore it after that, no harm done.

I was speaking about 5.2 patch, didn't check the HEAD one.
Oh, I see now what you mean. I ported the patch to 5_2 with the assumption that zend_lookup_class also used EG(scope), but in fact it doesn't. I updated the patch[1] which now directly uses calling_scope/ce_org instead of the current scope for parent/self resolution.

I hope this one better fits your requirements.

Regards

1: http://patches.colder.ch/Zend/callbacks_5_2.patch?markup

--
Etienne Kneuss
http://www.colder.ch
[EMAIL PROTECTED]

Men never do evil so completely and cheerfully as when they do it from a religious conviction.
-- Pascal

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to