Skip to content

Commit 7c07b24

Browse files
committed
fix for PHP 7.4
1 parent 4ac4281 commit 7c07b24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vkext/vk_zend.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@ static zend_always_inline void vk_zend_call_known_instance_method(zval *object,
239239
#if PHP_MAJOR_VERSION >= 8
240240
zend_call_known_instance_method(fun, zobj, retval_ptr, param_count, params);
241241
#else
242-
// TODO - this branch is not tested yet
243-
zend_call_known_instance_method(fun, object, retval_ptr, param_count, params);
242+
zval method_name_zval;
243+
ZVAL_STR(&method_name_zval, method_name);
244+
call_user_function(NULL, object, &method_name_zval, retval_ptr, param_count, params);
244245
#endif
245246
}
246247

0 commit comments

Comments
 (0)