Skip to content

Commit

Permalink
fix build with php <8.2, refs #493
Browse files Browse the repository at this point in the history
  • Loading branch information
stesie committed Feb 3, 2023
1 parent 1175617 commit 37cdb6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion v8js_v8object_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37cdb6f

Please sign in to comment.