0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-03 12:21:51 +00:00

Merge pull request #242 from stesie/fix-php7.1alpha2

Fix build against PHP 7.1.0alpha2
This commit is contained in:
Stefan Siegl 2016-08-12 15:41:58 +02:00 committed by GitHub
commit dbd97acf20
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

@ -56,9 +56,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;