php-src/ext/soap
Máté Kocsis 8d12f666ae
Fix registration of internal readonly child classes (#15459)
Currently, internal classes are registered with the following code:

INIT_CLASS_ENTRY(ce, "InternalClass", class_InternalClass_methods);
class_entry = zend_register_internal_class_ex(&ce, NULL);
class_entry->ce_flags |= ...;

This has worked well so far, except if InternalClass is readonly. It is because some inheritance checks are run by zend_register_internal_class_ex before ZEND_ACC_READONLY_CLASS is added to ce_flags.

The issue is fixed by adding a zend_register_internal_class_with_flags() zend API function that stubs can use from now on. This function makes sure to add the flags before running any checks. Since the new API is not available in lower PHP versions, gen_stub.php has to keep support for the existing API for PHP 8.3 and below.
2024-08-24 12:36:54 +02:00
..
tests Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
config.m4 Add date extension to dependencies (#15475) 2024-08-18 16:47:57 +02:00
config.w32 Add date extension to dependencies (#15475) 2024-08-18 16:47:57 +02:00
CREDITS
php_encoding.c Merge branch 'PHP-8.3' 2024-08-07 10:04:58 +02:00
php_encoding.h Merge branch 'PHP-8.3' 2024-08-07 10:04:58 +02:00
php_http.c Merge branch 'PHP-8.3' 2024-07-17 19:35:19 +02:00
php_http.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_packet_soap.c ext/soap: Use bool as return type instead of int for parse_packet_soap() 2024-06-19 02:20:34 +01:00
php_packet_soap.h ext/soap: Use bool as return type instead of int for parse_packet_soap() 2024-06-19 02:20:34 +01:00
php_schema.c ext/soap: Add support for clark notation for namespaces in class map 2023-10-23 23:39:28 +02:00
php_schema.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_sdl.c ext/soap: Initialize a HashTable of size j 2024-06-27 17:41:23 +01:00
php_sdl.h Struct-pack some soap datatypes (#14403) 2024-06-01 14:11:45 +02:00
php_soap.h Merge branch 'PHP-8.3' 2024-08-07 10:04:58 +02:00
php_xml.c Backport libxml2 2.13.2 fixes (#14816) 2024-07-04 15:29:50 +02:00
php_xml.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
soap_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
soap.c Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
soap.stub.php ext/soap: Deprecate passing an int to SoapServer::addFunction() (#15310) 2024-08-09 17:41:02 +01:00