diff --git a/v8js_array_access.cc b/v8js_array_access.cc index c988366..b8cca38 100644 --- a/v8js_array_access.cc +++ b/v8js_array_access.cc @@ -33,9 +33,11 @@ static zval v8js_array_access_dispatch(zend_object *object, const char *method_n zval php_value; fci.size = sizeof(fci); +#if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 0) fci.function_table = &object->ce->function_table; - ZVAL_STRING(&fci.function_name, method_name); fci.symbol_table = NULL; +#endif + ZVAL_STRING(&fci.function_name, method_name); fci.retval = &php_value; zval params[2]; diff --git a/v8js_object_export.cc b/v8js_object_export.cc index 6e0b55c..b963b98 100644 --- a/v8js_object_export.cc +++ b/v8js_object_export.cc @@ -55,9 +55,11 @@ static void v8js_call_php_func(zend_object *object, zend_function *method_ptr, v /* zend_fcall_info */ fci.size = sizeof(fci); +#if (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION == 0) fci.function_table = &object->ce->function_table; - fci.function_name = fname; fci.symbol_table = NULL; +#endif + fci.function_name = fname; fci.object = object; fci.retval = &retval; fci.param_count = 0;