diff options
author | Stanislav Malyshev <stas@php.net> | 2010-04-19 19:45:03 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2010-04-19 19:45:03 +0000 |
commit | c93a4f192bb338aa9a22d44276684cf92dfe902d (patch) | |
tree | 4e2aa5c989856d9bafd0415f5d7d0ebd4d9c8458 /Zend/zend_closures.h | |
parent | 5a211da7af41f82ec123e63990942eae567dfef2 (diff) | |
download | php-git-c93a4f192bb338aa9a22d44276684cf92dfe902d.tar.gz |
restore $this support for closures to its former glory
Diffstat (limited to 'Zend/zend_closures.h')
-rw-r--r-- | Zend/zend_closures.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_closures.h b/Zend/zend_closures.h index e2c12d84e8..24ecfaed91 100644 --- a/Zend/zend_closures.h +++ b/Zend/zend_closures.h @@ -30,9 +30,10 @@ void zend_register_closure_ce(TSRMLS_D); extern ZEND_API zend_class_entry *zend_ce_closure; -ZEND_API void zend_create_closure(zval *res, zend_function *op_array TSRMLS_DC); +ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zval *this_ptr TSRMLS_DC); ZEND_API zend_function *zend_get_closure_invoke_method(zval *obj TSRMLS_DC); ZEND_API const zend_function *zend_get_closure_method_def(zval *obj TSRMLS_DC); +ZEND_API zval* zend_get_closure_this_ptr(zval *obj TSRMLS_DC); END_EXTERN_C() |