php-src/ext/ftp
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 Trim trailing whitespace (#14721) 2024-06-29 18:41:45 +02:00
config.m4 Autotools: Improve ftp and mysqlnd SSL configure options (#15164) 2024-08-03 22:13:36 +02:00
config.w32 Autotools: Improve ftp and mysqlnd SSL configure options (#15164) 2024-08-03 22:13:36 +02:00
CREDITS
ftp_arginfo.h Fix registration of internal readonly child classes (#15459) 2024-08-24 12:36:54 +02:00
ftp.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
ftp.h Struct-pack stream-related data in ftpbuf (#12877) 2023-12-06 04:39:00 +00:00
ftp.stub.php Merge branch 'PHP-8.1' into PHP-8.2 2023-03-03 21:12:04 +00:00
php_ftp.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
php_ftp.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00