php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
pdo_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: dc41dddeea1ae117c6f2f3447afb29bf6623b757 */
3
4ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pdo_drivers, 0, 0, IS_ARRAY, 0)
6
8
9static const zend_function_entry ext_functions[] = {
10 ZEND_FE(pdo_drivers, arginfo_pdo_drivers)
12};
13
14static zend_class_entry *register_class_PDOException(zend_class_entry *class_entry_RuntimeException)
15{
16 zend_class_entry ce, *class_entry;
17
18 INIT_CLASS_ENTRY(ce, "PDOException", NULL);
19 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_RuntimeException, 0);
20
21 zval property_code_default_value;
22 ZVAL_LONG(&property_code_default_value, 0);
23 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
24 zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PROTECTED, NULL, (zend_type) ZEND_TYPE_INIT_NONE(0));
25 zend_string_release(property_code_name);
26
27 zval property_errorInfo_default_value;
28 ZVAL_NULL(&property_errorInfo_default_value);
29 zend_string *property_errorInfo_name = zend_string_init("errorInfo", sizeof("errorInfo") - 1, 1);
30 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));
31 zend_string_release(property_errorInfo_name);
32
33 return class_entry;
34}
#define NULL
Definition gdcache.h:45
pdo_drivers()
Definition pdo.stub.php:16
ZEND_API zend_property_info * zend_declare_typed_property(zend_class_entry *ce, zend_string *name, zval *property, int access_type, zend_string *doc_comment, zend_type type)
Definition zend_API.c:4505
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
struct _zval_struct zval
#define ZEND_ACC_PUBLIC
#define ZEND_ACC_PROTECTED
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define MAY_BE_NULL
#define MAY_BE_ARRAY
#define ZEND_TYPE_INIT_MASK(_type_mask)
Definition zend_types.h:283
#define ZVAL_NULL(z)
#define ZVAL_LONG(z, l)
#define IS_ARRAY
Definition zend_types.h:607
#define ZEND_TYPE_INIT_NONE(extra_flags)
Definition zend_types.h:280