@@ -47,16 +47,12 @@ bool php_v8_function_unpack_args(zval *arguments_zv, int arg_position, v8::Isola
4747
4848 char *exception_message;
4949
50- #if PHP_VERSION_ID >= 70100
5150 zend_string *ce_name = zend_get_executed_scope ()->name ;
52- #else
53- zend_string *ce_name = EG (scope)->name ;
54- #endif
5551
5652 ZEND_HASH_FOREACH_VAL (myht, pzval) {
5753 if (Z_TYPE_P (pzval) != IS_OBJECT) {
5854 zend_throw_error (zend_ce_type_error,
59- " Argument %d passed to %s::%s() should be array of \\ V8\\ Value objects, %s given at %d offset" ,
55+ " Argument %d passed to %s::%s() must be an array of \\ V8\\ Value objects, %s given at %d offset" ,
6056 arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
6157 zend_zval_type_name (pzval), i);
6258
@@ -66,7 +62,7 @@ bool php_v8_function_unpack_args(zval *arguments_zv, int arg_position, v8::Isola
6662
6763 if (!instanceof_function (Z_OBJCE_P (pzval), php_v8_value_class_entry)) {
6864 zend_throw_error (zend_ce_type_error,
69- " Argument %d passed to %s::%s() should be array of \\ V8\\ Value objects, instance of %s given at %d offset" ,
65+ " Argument %d passed to %s::%s() must be an array of \\ V8\\ Value objects, instance of %s given at %d offset" ,
7066 arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
7167 ZSTR_VAL (Z_OBJCE_P (pzval)->name ), i);
7268
@@ -136,16 +132,12 @@ bool php_v8_function_unpack_string_args(zval* arguments_zv, int arg_position, v8
136132
137133 char *exception_message;
138134
139- #if PHP_VERSION_ID >= 70100
140- zend_string *ce_name = zend_get_executed_scope ()->name ;
141- #else
142- zend_string *ce_name = EG (scope)->name ;
143- #endif
135+ zend_string *ce_name = zend_get_executed_scope ()->name ;
144136
145137 ZEND_HASH_FOREACH_VAL (myht, pzval) {
146138 if (Z_TYPE_P (pzval) != IS_OBJECT) {
147139 zend_throw_error (zend_ce_type_error,
148- " Argument %d passed to %s::%s() should be array of \\ V8\\ StringValue objects, %s given at %d offset" ,
140+ " Argument %d passed to %s::%s() must be an array of \\ V8\\ StringValue objects, %s given at %d offset" ,
149141 arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
150142 zend_zval_type_name (pzval), i);
151143
@@ -155,7 +147,7 @@ bool php_v8_function_unpack_string_args(zval* arguments_zv, int arg_position, v8
155147
156148 if (!instanceof_function (Z_OBJCE_P (pzval), php_v8_string_class_entry)) {
157149 zend_throw_error (zend_ce_type_error,
158- " Argument %d passed to %s::%s() should be array of \\ V8\\ StringValue, instance of %s given at %d offset" ,
150+ " Argument %d passed to %s::%s() must be an array of \\ V8\\ StringValue, instance of %s given at %d offset" ,
159151 arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
160152 ZSTR_VAL (Z_OBJCE_P (pzval)->name ), i);
161153
@@ -225,16 +217,12 @@ bool php_v8_function_unpack_object_args(zval* arguments_zv, int arg_position, v8
225217
226218 char *exception_message;
227219
228- #if PHP_VERSION_ID >= 70100
229220 zend_string *ce_name = zend_get_executed_scope ()->name ;
230- #else
231- zend_string *ce_name = EG (scope)->name ;
232- #endif
233221
234222 ZEND_HASH_FOREACH_VAL (myht, pzval) {
235223 if (Z_TYPE_P (pzval) != IS_OBJECT) {
236224 zend_throw_error (zend_ce_type_error,
237- " Argument %d passed to %s::%s() should be array of \\ V8\\ ObjectValue objects, %s given at %d offset" ,
225+ " Argument %d passed to %s::%s() must be an array of \\ V8\\ ObjectValue objects, %s given at %d offset" ,
238226 arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
239227 zend_zval_type_name (pzval), i);
240228
@@ -244,7 +232,7 @@ bool php_v8_function_unpack_object_args(zval* arguments_zv, int arg_position, v8
244232
245233 if (!instanceof_function (Z_OBJCE_P (pzval), php_v8_object_class_entry)) {
246234 zend_throw_error (zend_ce_type_error,
247- " Argument %d passed to %s::%s() should be array of \\ V8\\ ObjectValue, instance of %s given at %d offset" ,
235+ " Argument %d passed to %s::%s() must be an array of \\ V8\\ ObjectValue, instance of %s given at %d offset" ,
248236 arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
249237 ZSTR_VAL (Z_OBJCE_P (pzval)->name ), i);
250238
0 commit comments