From d03900dc92af6d47921143f226217eae3ca564b7 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sat, 12 May 2012 22:12:48 -0700 Subject: fix bug #61782 - __clone/__destruct do not match other methods when checking access controls --- Zend/zend_object_handlers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Zend/zend_object_handlers.h') diff --git a/Zend/zend_object_handlers.h b/Zend/zend_object_handlers.h index 32c0a674b3..d0d7a7b847 100644 --- a/Zend/zend_object_handlers.h +++ b/Zend/zend_object_handlers.h @@ -146,6 +146,9 @@ struct _zend_object_handlers { extern ZEND_API zend_object_handlers std_object_handlers; +#define zend_get_function_root_class(fbc) \ + ((fbc)->common.prototype ? (fbc)->common.prototype->common.scope : (fbc)->common.scope) + BEGIN_EXTERN_C() ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, const char *function_name_strval, int function_name_strlen, const struct _zend_literal *key TSRMLS_DC); ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, const char *property_name, int property_name_len, zend_bool silent, const struct _zend_literal *key TSRMLS_DC); -- cgit v1.2.1