File tree 9 files changed +10
-13
lines changed
9 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -234,9 +234,6 @@ static void zend_weakref_free(zend_object *zo) {
234
234
zend_object_std_dtor (& wr -> std );
235
235
}
236
236
237
- #define zend_weakref_unsupported (object , thing ) \
238
- zend_throw_error(NULL, "%s objects do not support " thing, ZSTR_VAL(object->ce->name));
239
-
240
237
ZEND_COLD ZEND_METHOD (WeakReference , __construct )
241
238
{
242
239
zend_throw_error (NULL ,
Original file line number Diff line number Diff line change @@ -1193,7 +1193,7 @@ PHP_MINIT_FUNCTION(curl)
1193
1193
zend_class_entry ce ;
1194
1194
INIT_CLASS_ENTRY (ce , "CurlHandle" , class_CurlHandle_methods );
1195
1195
curl_ce = zend_register_internal_class (& ce );
1196
- curl_ce -> ce_flags |= ZEND_ACC_FINAL ;
1196
+ curl_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
1197
1197
curl_ce -> create_object = curl_create_object ;
1198
1198
curl_ce -> serialize = zend_class_serialize_deny ;
1199
1199
curl_ce -> unserialize = zend_class_unserialize_deny ;
Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ void curl_multi_register_class(const zend_function_entry *method_entries) {
597
597
zend_class_entry ce_multi ;
598
598
INIT_CLASS_ENTRY (ce_multi , "CurlMultiHandle" , method_entries );
599
599
curl_multi_ce = zend_register_internal_class (& ce_multi );
600
- curl_multi_ce -> ce_flags |= ZEND_ACC_FINAL ;
600
+ curl_multi_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
601
601
curl_multi_ce -> create_object = curl_multi_create_object ;
602
602
curl_multi_ce -> serialize = zend_class_serialize_deny ;
603
603
curl_multi_ce -> unserialize = zend_class_unserialize_deny ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ void curl_share_register_class(const zend_function_entry *method_entries) {
173
173
zend_class_entry ce_share ;
174
174
INIT_CLASS_ENTRY (ce_share , "CurlShareHandle" , method_entries );
175
175
curl_share_ce = zend_register_internal_class (& ce_share );
176
- curl_share_ce -> ce_flags |= ZEND_ACC_FINAL ;
176
+ curl_share_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
177
177
curl_share_ce -> create_object = curl_share_create_object ;
178
178
curl_share_ce -> serialize = & zend_class_serialize_deny ;
179
179
curl_share_ce -> unserialize = & zend_class_unserialize_deny ;
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ PHP_MINIT_FUNCTION(enchant)
192
192
193
193
INIT_CLASS_ENTRY (bce , "EnchantBroker" , class_EnchantBroker_methods );
194
194
enchant_broker_ce = zend_register_internal_class (& bce );
195
- enchant_broker_ce -> ce_flags |= ZEND_ACC_FINAL ;
195
+ enchant_broker_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
196
196
enchant_broker_ce -> create_object = enchant_broker_create_object ;
197
197
enchant_broker_ce -> serialize = zend_class_serialize_deny ;
198
198
enchant_broker_ce -> unserialize = zend_class_unserialize_deny ;
@@ -204,7 +204,7 @@ PHP_MINIT_FUNCTION(enchant)
204
204
205
205
INIT_CLASS_ENTRY (dce , "EnchantDictionary" , class_EnchantDictionary_methods );
206
206
enchant_dict_ce = zend_register_internal_class (& dce );
207
- enchant_dict_ce -> ce_flags |= ZEND_ACC_FINAL ;
207
+ enchant_dict_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
208
208
enchant_dict_ce -> create_object = enchant_dict_create_object ;
209
209
enchant_dict_ce -> serialize = zend_class_serialize_deny ;
210
210
enchant_dict_ce -> unserialize = zend_class_unserialize_deny ;
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ PHP_MINIT_FUNCTION(sysvsem)
156
156
zend_class_entry ce ;
157
157
INIT_CLASS_ENTRY (ce , "SysvSemaphore" , class_SysvSemaphore_methods );
158
158
sysvsem_ce = zend_register_internal_class (& ce );
159
- sysvsem_ce -> ce_flags |= ZEND_ACC_FINAL ;
159
+ sysvsem_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
160
160
sysvsem_ce -> create_object = sysvsem_create_object ;
161
161
sysvsem_ce -> serialize = zend_class_serialize_deny ;
162
162
sysvsem_ce -> unserialize = zend_class_unserialize_deny ;
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ PHP_MINIT_FUNCTION(sysvshm)
104
104
zend_class_entry ce ;
105
105
INIT_CLASS_ENTRY (ce , "SysvSharedMemory" , class_SysvSharedMemory_methods );
106
106
sysvshm_ce = zend_register_internal_class (& ce );
107
- sysvshm_ce -> ce_flags |= ZEND_ACC_FINAL ;
107
+ sysvshm_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
108
108
sysvshm_ce -> create_object = sysvshm_create_object ;
109
109
sysvshm_ce -> serialize = zend_class_serialize_deny ;
110
110
sysvshm_ce -> unserialize = zend_class_unserialize_deny ;
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ PHP_MINIT_FUNCTION(xml)
257
257
INIT_CLASS_ENTRY (ce , "XmlParser" , class_XMLParser_methods );
258
258
xml_parser_ce = zend_register_internal_class (& ce );
259
259
xml_parser_ce -> create_object = xml_parser_create_object ;
260
- xml_parser_ce -> ce_flags |= ZEND_ACC_FINAL ;
260
+ xml_parser_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
261
261
xml_parser_ce -> serialize = zend_class_serialize_deny ;
262
262
xml_parser_ce -> unserialize = zend_class_unserialize_deny ;
263
263
Original file line number Diff line number Diff line change @@ -1359,7 +1359,7 @@ static PHP_MINIT_FUNCTION(zlib)
1359
1359
zend_class_entry inflate_ce ;
1360
1360
INIT_CLASS_ENTRY (inflate_ce , "InflateContext" , class_InflateContext_methods );
1361
1361
inflate_context_ce = zend_register_internal_class (& inflate_ce );
1362
- inflate_context_ce -> ce_flags |= ZEND_ACC_FINAL ;
1362
+ inflate_context_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
1363
1363
inflate_context_ce -> create_object = inflate_context_create_object ;
1364
1364
inflate_context_ce -> serialize = zend_class_serialize_deny ;
1365
1365
inflate_context_ce -> unserialize = zend_class_unserialize_deny ;
@@ -1373,7 +1373,7 @@ static PHP_MINIT_FUNCTION(zlib)
1373
1373
zend_class_entry deflate_ce ;
1374
1374
INIT_CLASS_ENTRY (deflate_ce , "DeflateContext" , class_DeflateContext_methods );
1375
1375
deflate_context_ce = zend_register_internal_class (& deflate_ce );
1376
- deflate_context_ce -> ce_flags |= ZEND_ACC_FINAL ;
1376
+ deflate_context_ce -> ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES ;
1377
1377
deflate_context_ce -> create_object = deflate_context_create_object ;
1378
1378
deflate_context_ce -> serialize = zend_class_serialize_deny ;
1379
1379
deflate_context_ce -> unserialize = zend_class_unserialize_deny ;
You can’t perform that action at this time.
0 commit comments