php-src/ext/intl/resourcebundle
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
..
resourcebundle.c ext/intl: Refactor ResourceBundle get and dimension access (#13503) 2024-02-26 17:03:17 +00:00
resourcebundle.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
resourcebundle.stub.php ext/intl: Refactor ResourceBundle get and dimension access (#13503) 2024-02-26 17:03:17 +00:00
resourcebundle_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
resourcebundle_class.c Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
resourcebundle_class.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
resourcebundle_iterator.c [skip ci] Remove dead code 2024-08-17 18:14:47 +02:00
resourcebundle_iterator.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00