php-src/ext/pdo_mysql
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 Autotools: Remove PDO dependency related errors (#15347) 2024-08-11 21:35:36 +02:00
config.w32 Sync preprocessor macros help texts (#15218) 2024-08-04 12:52:16 +02:00
CREDITS Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
Makefile.frag Define default RE2C_FLAGS (#14615) 2024-06-24 22:09:04 +02:00
Makefile.frag.w32 Define default RE2C_FLAGS (#14615) 2024-06-24 22:09:04 +02:00
mysql_driver.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
mysql_sql_parser.re pdo_mysql: "--" should be followed by a whitespace character 2024-06-17 23:31:25 +02:00
mysql_statement.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
pdo_mysql_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
pdo_mysql.c Update mysql preprocessor macros help texts (#15288) 2024-08-09 18:07:05 +02:00
pdo_mysql.stub.php Fixed parent class of stub (#14990) 2024-07-17 21:38:59 +09:00
php_pdo_mysql_int.h Implemented PDO Driver specific SQL parsers 2024-06-17 23:31:24 +02:00
php_pdo_mysql.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00