diff options
| author | Stanislav Malyshev <stas@php.net> | 2012-05-12 22:12:48 -0700 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2012-05-14 11:03:21 -0700 |
| commit | d03900dc92af6d47921143f226217eae3ca564b7 (patch) | |
| tree | cac0b3f05f139afa395f4b8ead1a43a4504f128e /Zend/zend_object_handlers.h | |
| parent | 47db8a9aa19f6e17a1018becf9978315c79a1cb0 (diff) | |
| download | php-git-d03900dc92af6d47921143f226217eae3ca564b7.tar.gz | |
fix bug #61782 - __clone/__destruct do not match other methods when checking access controls
Diffstat (limited to 'Zend/zend_object_handlers.h')
| -rw-r--r-- | Zend/zend_object_handlers.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
