mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-08 13:48:40 +00:00
Fix build against PHP 7.1.0alpha2
This commit is contained in:
parent
4161008417
commit
93119f1bc2
@ -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];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user