@@ -101,11 +101,6 @@ void php_v8_message_create_from_message(zval *return_value, php_v8_isolate_t *ph
101
101
if (v8::Message::kNoColumnInfo != end_column) {
102
102
zend_update_property_long (this_ce, return_value, ZEND_STRL (" end_column" ), static_cast <zend_long>(end_column));
103
103
}
104
-
105
- /* v8::Message::IsSharedCrossOrigin */
106
- zend_update_property_bool (this_ce, return_value, ZEND_STRL (" is_shared_cross_origin" ), static_cast <zend_bool>(message->IsSharedCrossOrigin ()));
107
- /* v8::Message::IsOpaque */
108
- zend_update_property_bool (this_ce, return_value, ZEND_STRL (" is_opaque" ), static_cast <zend_bool>(message->IsOpaque ()));
109
104
}
110
105
111
106
@@ -123,13 +118,9 @@ static PHP_METHOD(Message, __construct) {
123
118
zend_long start_column = -1 ;
124
119
zend_long end_column = -1 ;
125
120
126
- zend_bool is_shared_cross_origin = ' \0 ' ;
127
- zend_bool is_opaque = ' \0 ' ;
128
-
129
- if (zend_parse_parameters (ZEND_NUM_ARGS (), " SSoSo|lllllbb" ,
121
+ if (zend_parse_parameters (ZEND_NUM_ARGS (), " SSoSo|lllll" ,
130
122
&message, &source_line, &script_origin, &resource_name, &stack_trace,
131
- &line_number, &start_position, &end_position, &start_column, &end_column,
132
- &is_shared_cross_origin, &is_opaque) == FAILURE) {
123
+ &line_number, &start_position, &end_position, &start_column, &end_column) == FAILURE) {
133
124
return ;
134
125
}
135
126
@@ -154,9 +145,6 @@ static PHP_METHOD(Message, __construct) {
154
145
if (end_column > 0 ) {
155
146
zend_update_property_long (this_ce, getThis (), ZEND_STRL (" end_column" ), end_column);
156
147
}
157
-
158
- zend_update_property_bool (this_ce, getThis (), ZEND_STRL (" is_shared_cross_origin" ), is_shared_cross_origin);
159
- zend_update_property_bool (this_ce, getThis (), ZEND_STRL (" is_opaque" ), is_opaque);
160
148
}
161
149
162
150
static PHP_METHOD (Message, get)
@@ -269,28 +257,6 @@ static PHP_METHOD(Message, getEndColumn)
269
257
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" end_column" ), 0 , &rv), 1 , 0 );
270
258
}
271
259
272
- static PHP_METHOD (Message, isSharedCrossOrigin)
273
- {
274
- zval rv;
275
-
276
- if (zend_parse_parameters_none () == FAILURE) {
277
- return ;
278
- }
279
-
280
- RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" is_shared_cross_origin" ), 0 , &rv), 1 , 0 );
281
- }
282
-
283
- static PHP_METHOD (Message, isOpaque)
284
- {
285
- zval rv;
286
-
287
- if (zend_parse_parameters_none () == FAILURE) {
288
- return ;
289
- }
290
-
291
- RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" is_opaque" ), 0 , &rv), 1 , 0 );
292
- }
293
-
294
260
PHP_V8_ZEND_BEGIN_ARG_WITH_CONSTRUCTOR_INFO_EX (arginfo___construct, 5 )
295
261
ZEND_ARG_TYPE_INFO(0 , message, IS_STRING, 0 )
296
262
ZEND_ARG_TYPE_INFO(0 , source_line, IS_STRING, 0 )
@@ -302,8 +268,6 @@ PHP_V8_ZEND_BEGIN_ARG_WITH_CONSTRUCTOR_INFO_EX(arginfo___construct, 5)
302
268
ZEND_ARG_TYPE_INFO(0 , end_position, IS_LONG, 1 )
303
269
ZEND_ARG_TYPE_INFO(0 , start_column, IS_LONG, 1 )
304
270
ZEND_ARG_TYPE_INFO(0 , end_column, IS_LONG, 1 )
305
- ZEND_ARG_TYPE_INFO(0 , is_shared_cross_origin, _IS_BOOL, 0 )
306
- ZEND_ARG_TYPE_INFO(0 , is_opaque, _IS_BOOL, 0 )
307
271
ZEND_END_ARG_INFO()
308
272
309
273
PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get, ZEND_RETURN_VALUE, 0 , IS_STRING, 0 )
@@ -336,12 +300,6 @@ ZEND_END_ARG_INFO()
336
300
PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getEndColumn, ZEND_RETURN_VALUE, 0 , IS_LONG, 1 )
337
301
ZEND_END_ARG_INFO()
338
302
339
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_isSharedCrossOrigin, ZEND_RETURN_VALUE, 0 , _IS_BOOL, 0 )
340
- ZEND_END_ARG_INFO()
341
-
342
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_isOpaque, ZEND_RETURN_VALUE, 0 , _IS_BOOL, 0 )
343
- ZEND_END_ARG_INFO()
344
-
345
303
346
304
static const zend_function_entry php_v8_message_methods[] = {
347
305
PHP_V8_ME (Message, __construct, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
@@ -355,8 +313,6 @@ static const zend_function_entry php_v8_message_methods[] = {
355
313
PHP_V8_ME (Message, getEndPosition, ZEND_ACC_PUBLIC)
356
314
PHP_V8_ME (Message, getStartColumn, ZEND_ACC_PUBLIC)
357
315
PHP_V8_ME (Message, getEndColumn, ZEND_ACC_PUBLIC)
358
- PHP_V8_ME (Message, isSharedCrossOrigin, ZEND_ACC_PUBLIC)
359
- PHP_V8_ME (Message, isOpaque, ZEND_ACC_PUBLIC)
360
316
361
317
PHP_FE_END
362
318
};
@@ -379,8 +335,5 @@ PHP_MINIT_FUNCTION (php_v8_message) {
379
335
zend_declare_property_null (this_ce, ZEND_STRL (" start_column" ), ZEND_ACC_PRIVATE);
380
336
zend_declare_property_null (this_ce, ZEND_STRL (" end_column" ), ZEND_ACC_PRIVATE);
381
337
382
- zend_declare_property_bool (this_ce, ZEND_STRL (" is_shared_cross_origin" ), static_cast <zend_bool>(false ), ZEND_ACC_PRIVATE);
383
- zend_declare_property_bool (this_ce, ZEND_STRL (" is_opaque" ), static_cast <zend_bool>(false ), ZEND_ACC_PRIVATE);
384
-
385
338
return SUCCESS;
386
339
}
0 commit comments