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

Initialize fci.no_separation correctly

This commit is contained in:
Stefan Siegl 2014-04-11 20:13:08 +02:00
parent aa924a8cb3
commit b188f9882f

View File

@ -638,14 +638,16 @@ static inline v8::Local<v8::Value> php_v8js_named_property_callback(v8::Local<v8
fci.function_table = &ce->function_table;
fci.function_name = &fmember;
fci.symbol_table = NULL;
fci.object_ptr = object;
fci.retval_ptr_ptr = &php_value;
fci.param_count = 1;
zval *zname_ptr = &zname;
zval **zname_ptr_ptr = &zname_ptr;
fci.param_count = 1;
fci.params = &zname_ptr_ptr;
fci.object_ptr = object;
fci.no_separation = 0;
zend_call_function(&fci, NULL TSRMLS_CC);
ret_value = zval_to_v8js(php_value, isolate TSRMLS_CC);
@ -685,17 +687,18 @@ static inline v8::Local<v8::Value> php_v8js_named_property_callback(v8::Local<v8
fci.function_table = &ce->function_table;
fci.function_name = &fmember;
fci.symbol_table = NULL;
fci.object_ptr = object;
fci.retval_ptr_ptr = &php_ret_value;
fci.param_count = 2;
zval *zname_ptr = &zname;
zval **params[2];
fci.param_count = 2;
fci.params = params;
fci.params[0] = &zname_ptr;
fci.params[1] = &php_value;
fci.object_ptr = object;
fci.no_separation = 1;
zend_call_function(&fci, NULL TSRMLS_CC);
ret_value = zval_to_v8js(php_ret_value, isolate TSRMLS_CC);