浏览代码

pass const char* instead of zend_string*

Stefan Siegl 9 年之前
父节点
当前提交
4002c3c1ae
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      v8js_object_export.cc

+ 2 - 2
v8js_object_export.cc

@@ -64,8 +64,8 @@ static void v8js_call_php_func(zend_object *object, zend_function *method_ptr, v
 	{
 		error_len = spprintf(&error, 0,
 			"%s::%s() expects %s %d parameter%s, %d given",
-				object->ce->name,
-				method_ptr->common.function_name,
+				ZSTR_VAL(object->ce->name),
+				ZSTR_VAL(method_ptr->common.function_name),
 				min_num_args == max_num_args ? "exactly" : argc < min_num_args ? "at least" : "at most",
 				argc < min_num_args ? min_num_args : max_num_args,
 				(argc < min_num_args ? min_num_args : max_num_args) == 1 ? "" : "s",