0
0
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:
Stefan Siegl 2016-07-03 00:25:42 +02:00
parent 4161008417
commit 93119f1bc2
2 changed files with 6 additions and 2 deletions

View File

@ -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];

View File

@ -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;