0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-09 15:18:41 +00:00

pass const char* instead of zend_string*

This commit is contained in:
Stefan Siegl 2015-09-28 22:44:30 +02:00
parent c6136ec3d2
commit 4002c3c1ae

View File

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