0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 14:01:53 +00:00

fix build with php <8.2, refs #493

This commit is contained in:
Stefan Siegl 2023-02-03 19:38:20 +01:00
parent 1175617492
commit 37cdb6f9cf

View File

@ -464,7 +464,12 @@ static zend_function *v8js_v8object_get_method(zend_object **object_ptr, zend_st
}
/* }}} */
static zend_result v8js_v8object_get_closure(zend_object *object, zend_class_entry **ce_ptr, zend_function **fptr_ptr, zend_object **zobj_ptr, bool call) /* {{{ */
#if PHP_VERSION_ID < 80200
static int v8js_v8object_get_closure
#else
static zend_result v8js_v8object_get_closure
#endif
(zend_object *object, zend_class_entry **ce_ptr, zend_function **fptr_ptr, zend_object **zobj_ptr, bool call) /* {{{ */
{
zend_internal_function *invoke;
v8js_v8object *obj = Z_V8JS_V8OBJECT_OBJ(object);