php-src/ext/pdo_dblib
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 Amend PDO driver-specific class names (#14069) 2024-05-30 20:15:42 +02:00
config.m4 Autotools: Remove PHP_LIBDIR adjustment in pdo_dblib (#15463) 2024-08-17 18:39:49 +02:00
config.w32 Switch to use ZTS cache 2019-03-12 14:15:47 +03:00
CREDITS add myself to pdo_dblib CREDITS 2016-10-27 12:14:12 -04:00
dblib_driver.c Implemented PDO Driver specific SQL parsers 2024-06-17 23:31:24 +02:00
dblib_stmt.c Simplify PDO include paths (#14444) 2024-06-03 12:56:21 +02:00
pdo_dblib_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
pdo_dblib.c Simplify PDO include paths (#14444) 2024-06-03 12:56:21 +02:00
pdo_dblib.stub.php Fixed parent class of stub (#14990) 2024-07-17 21:38:59 +09:00
php_pdo_dblib_int.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_pdo_dblib.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00