php-src/ext/pdo/pdo_arginfo.h
DanielEScherzer 53cb89670c
Generated arginfo header files: remove empty zend_function_entry arrays (#15705)
When a class (or enum) has no methods, rather than using an array that only
contains `ZEND_FE_END`, use `NULL` for the functions. The implementation of
class registration for internal classes, `do_register_internal_class()` in
zend_API.c, already skips classes where the functions are `NULL`. By removing
these unneeded arrays, we can reduce the size of the header files, while also
removing an unneeded call to zend_register_functions() for each internal class
with no extra methods.
2024-09-03 23:19:53 +02:00

35 lines
1.4 KiB
C
Generated

/* This is a generated file, edit the .stub.php file instead.
* Stub hash: dc41dddeea1ae117c6f2f3447afb29bf6623b757 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pdo_drivers, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()
ZEND_FUNCTION(pdo_drivers);
static const zend_function_entry ext_functions[] = {
ZEND_FE(pdo_drivers, arginfo_pdo_drivers)
ZEND_FE_END
};
static zend_class_entry *register_class_PDOException(zend_class_entry *class_entry_RuntimeException)
{
zend_class_entry ce, *class_entry;
INIT_CLASS_ENTRY(ce, "PDOException", NULL);
class_entry = zend_register_internal_class_with_flags(&ce, class_entry_RuntimeException, 0);
zval property_code_default_value;
ZVAL_LONG(&property_code_default_value, 0);
zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
zend_string_release(property_code_name);
zval property_errorInfo_default_value;
ZVAL_NULL(&property_errorInfo_default_value);
zend_string *property_errorInfo_name = zend_string_init("errorInfo", sizeof("errorInfo") - 1, 1);
zend_declare_typed_property(class_entry, property_errorInfo_name, &property_errorInfo_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ARRAY|MAY_BE_NULL));
zend_string_release(property_errorInfo_name);
return class_entry;
}