php-src/ext/xsl
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 Fix trampoline leak in xpath callables 2024-07-18 16:54:46 +02:00
config.m4 Autotools: Use a no-op command in PKG_CHECK_MODULES (#15562) 2024-08-23 22:35:59 +02:00
config.w32 Sync AC_DEFINE help texts (#15207) 2024-08-03 09:47:39 +02:00
CREDITS
php_xsl_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
php_xsl.c Convert forgotten efree to zend_string_release 2024-07-18 17:32:50 +02:00
php_xsl.h Avoid duplicating the filename string when profiling in XSL (#15010) 2024-07-18 17:27:53 +02:00
php_xsl.stub.php Update ext/dom names after policy change (#14171) 2024-05-09 10:40:53 +02:00
xsltprocessor.c Avoid duplicating the filename string when profiling in XSL (#15010) 2024-07-18 17:27:53 +02:00