com php-src: Fix build: ext/reflection/php_reflection.c

From: Date: Tue, 05 May 2015 19:40:28 +0000
Subject: com php-src: Fix build: ext/reflection/php_reflection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86610@lists.php.net to get a copy of this message
Commit: c0c68a94068dcaa8d862b0bfb3dabb5223cb196a Author: Nikita Popov <nikic@php.net> Tue, 5 May 2015 21:40:28 +0200 Parents: d9c2959c27cc19a8040a4f649f81d0de16ce5a67 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c0c68a94068dcaa8d862b0bfb3dabb5223cb196a Log: Fix build Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7615947..f7dd553 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1717,7 +1717,7 @@ ZEND_METHOD(reflection_function, getClosure) } GET_REFLECTION_OBJECT_PTR(fptr); - zend_create_closure(return_value, fptr, NULL, NULL); + zend_create_closure(return_value, fptr, NULL, NULL, NULL); } /* }}} */ @@ -2827,7 +2827,7 @@ ZEND_METHOD(reflection_method, getClosure) GET_REFLECTION_OBJECT_PTR(mptr); if (mptr->common.fn_flags & ZEND_ACC_STATIC) { - zend_create_closure(return_value, mptr, mptr->common.scope, NULL); + zend_create_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL); } else { if (zend_parse_parameters(ZEND_NUM_ARGS(), "o", &obj) == FAILURE) { return; @@ -2844,7 +2844,7 @@ ZEND_METHOD(reflection_method, getClosure) { RETURN_ZVAL(obj, 1, 0); } else { - zend_create_closure(return_value, mptr, mptr->common.scope, obj); + zend_create_closure(return_value, mptr, mptr->common.scope, Z_OBJCE_P(obj), obj); } } }

« previous php.cvs (#86610) next »