php-src/ext/pdo_firebird
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 pdo_firebird: Formatting time zone types 2024-08-13 01:25:48 +02:00
config.m4 Cater to raised requirement of fbclient 3.0+ for pdo_firebird (GH-15498) 2024-08-20 16:00:00 +02:00
config.w32 Cater to raised requirement of fbclient 3.0+ for pdo_firebird (GH-15498) 2024-08-20 16:00:00 +02:00
CREDITS Cleanup $ is not needed for git 2014-04-10 17:42:32 +03:00
firebird_driver.c pdo_firebird: Formatting time zone types 2024-08-13 01:25:48 +02:00
firebird_statement.c pdo_firebird: Formatting time zone types 2024-08-13 01:25:48 +02:00
pdo_firebird_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
pdo_firebird_utils.cpp pdo_firebird: Formatting time zone types 2024-08-13 01:25:48 +02:00
pdo_firebird_utils.h pdo_firebird: Formatting time zone types 2024-08-13 01:25:48 +02:00
pdo_firebird.c ext/pdo_firebird: Added getApiVersion() and removed from getAttribute (#15004) 2024-07-18 11:17:52 +09:00
pdo_firebird.stub.php ext/pdo_firebird: Added getApiVersion() and removed from getAttribute (#15004) 2024-07-18 11:17:52 +09:00
php_pdo_firebird_int.h ext/pdo_firebird: Added getApiVersion() and removed from getAttribute (#15004) 2024-07-18 11:17:52 +09:00
php_pdo_firebird.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00