@@ -47,16 +47,12 @@ bool php_v8_function_unpack_args(zval *arguments_zv, int arg_position, v8::Isola
47
47
48
48
char *exception_message;
49
49
50
- #if PHP_VERSION_ID >= 70100
51
50
zend_string *ce_name = zend_get_executed_scope ()->name ;
52
- #else
53
- zend_string *ce_name = EG (scope)->name ;
54
- #endif
55
51
56
52
ZEND_HASH_FOREACH_VAL (myht, pzval) {
57
53
if (Z_TYPE_P (pzval) != IS_OBJECT) {
58
54
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" ,
60
56
arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
61
57
zend_zval_type_name (pzval), i);
62
58
@@ -66,7 +62,7 @@ bool php_v8_function_unpack_args(zval *arguments_zv, int arg_position, v8::Isola
66
62
67
63
if (!instanceof_function (Z_OBJCE_P (pzval), php_v8_value_class_entry)) {
68
64
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" ,
70
66
arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
71
67
ZSTR_VAL (Z_OBJCE_P (pzval)->name ), i);
72
68
@@ -136,16 +132,12 @@ bool php_v8_function_unpack_string_args(zval* arguments_zv, int arg_position, v8
136
132
137
133
char *exception_message;
138
134
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 ;
144
136
145
137
ZEND_HASH_FOREACH_VAL (myht, pzval) {
146
138
if (Z_TYPE_P (pzval) != IS_OBJECT) {
147
139
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" ,
149
141
arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
150
142
zend_zval_type_name (pzval), i);
151
143
@@ -155,7 +147,7 @@ bool php_v8_function_unpack_string_args(zval* arguments_zv, int arg_position, v8
155
147
156
148
if (!instanceof_function (Z_OBJCE_P (pzval), php_v8_string_class_entry)) {
157
149
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" ,
159
151
arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
160
152
ZSTR_VAL (Z_OBJCE_P (pzval)->name ), i);
161
153
@@ -225,16 +217,12 @@ bool php_v8_function_unpack_object_args(zval* arguments_zv, int arg_position, v8
225
217
226
218
char *exception_message;
227
219
228
- #if PHP_VERSION_ID >= 70100
229
220
zend_string *ce_name = zend_get_executed_scope ()->name ;
230
- #else
231
- zend_string *ce_name = EG (scope)->name ;
232
- #endif
233
221
234
222
ZEND_HASH_FOREACH_VAL (myht, pzval) {
235
223
if (Z_TYPE_P (pzval) != IS_OBJECT) {
236
224
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" ,
238
226
arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
239
227
zend_zval_type_name (pzval), i);
240
228
@@ -244,7 +232,7 @@ bool php_v8_function_unpack_object_args(zval* arguments_zv, int arg_position, v8
244
232
245
233
if (!instanceof_function (Z_OBJCE_P (pzval), php_v8_object_class_entry)) {
246
234
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" ,
248
236
arg_position, ZSTR_VAL (ce_name), get_active_function_name (),
249
237
ZSTR_VAL (Z_OBJCE_P (pzval)->name ), i);
250
238
0 commit comments