]> granicus.if.org Git - php/commitdiff
Fix build
authorNikita Popov <nikic@php.net>
Tue, 5 May 2015 19:40:28 +0000 (21:40 +0200)
committerNikita Popov <nikic@php.net>
Tue, 5 May 2015 19:40:28 +0000 (21:40 +0200)
ext/reflection/php_reflection.c

index 76159479f2482054ee0b256e972bd985f2234f01..f7dd5531d00c546065d7f1ab52490dd8170fc6f1 100644 (file)
@@ -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);
                }
        }
 }