From b188f9882fe43f0a9274d6353516ae2b67121adb Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 11 Apr 2014 20:13:08 +0200 Subject: [PATCH] Initialize fci.no_separation correctly --- v8js_convert.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/v8js_convert.cc b/v8js_convert.cc index 356317b..a320502 100644 --- a/v8js_convert.cc +++ b/v8js_convert.cc @@ -638,14 +638,16 @@ static inline v8::Local php_v8js_named_property_callback(v8::Localfunction_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 php_v8js_named_property_callback(v8::Localfunction_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);