php-src/ext/dba
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
..
libcdb Fix [-Wstrict-prototypes] in DBA 2023-03-06 17:03:41 +00:00
libflatfile Sync #if/ifdef/defined (#14508) 2024-06-09 14:23:41 +02:00
libinifile Sync #if/ifdef/defined (#14508) 2024-06-09 14:23:41 +02:00
tests Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
config.m4 [skip ci] Fix typo 2024-08-05 16:15:19 +02:00
config.w32 Add and update ext/dba preprocessor macros help texts (#15221) 2024-08-04 23:23:38 +02:00
CREDITS Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
dba.c Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
dba.stub.php Migrate ext/dba resources to objects (#14239) 2024-05-17 08:43:33 +02:00
dba_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
dba_cdb.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_db1.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_db2.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_db3.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_db4.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_dbm.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_flatfile.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_gdbm.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_inifile.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_lmdb.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_ndbm.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_qdbm.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
dba_tcadb.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
install_cdb.sh Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
php_cdb.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_db1.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_db2.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_db3.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_db4.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_dba.h Migrate ext/dba resources to objects (#14239) 2024-05-17 08:43:33 +02:00
php_dbm.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_flatfile.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_gdbm.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_inifile.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_lmdb.h Add support to pass driver flags to DBA handlers 2022-07-23 18:38:27 +01:00
php_ndbm.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_qdbm.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00
php_tcadb.h Fix [-Wundef] warnings in DBA extension 2022-04-01 14:38:44 +01:00