xref: /PHP-8.1/ext/pdo/pdo_dbh_arginfo.h (revision 63850061)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 7d10dbdfd55eb4a4dc779cbf4fa000cdf4fb3539 */
3 
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1)
5 	ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, username, IS_STRING, 1, "null")
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, password, IS_STRING, 1, "null")
8 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null")
9 ZEND_END_ARG_INFO()
10 
11 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDO_beginTransaction, 0, 0, _IS_BOOL, 0)
12 ZEND_END_ARG_INFO()
13 
14 #define arginfo_class_PDO_commit arginfo_class_PDO_beginTransaction
15 
16 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDO_errorCode, 0, 0, IS_STRING, 1)
17 ZEND_END_ARG_INFO()
18 
19 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDO_errorInfo, 0, 0, IS_ARRAY, 0)
20 ZEND_END_ARG_INFO()
21 
22 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_PDO_exec, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
23 	ZEND_ARG_TYPE_INFO(0, statement, IS_STRING, 0)
24 ZEND_END_ARG_INFO()
25 
26 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDO_getAttribute, 0, 1, IS_MIXED, 0)
27 	ZEND_ARG_TYPE_INFO(0, attribute, IS_LONG, 0)
28 ZEND_END_ARG_INFO()
29 
30 #define arginfo_class_PDO_getAvailableDrivers arginfo_class_PDO_errorInfo
31 
32 #define arginfo_class_PDO_inTransaction arginfo_class_PDO_beginTransaction
33 
34 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_PDO_lastInsertId, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
35 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, name, IS_STRING, 1, "null")
36 ZEND_END_ARG_INFO()
37 
38 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_PDO_prepare, 0, 1, PDOStatement, MAY_BE_FALSE)
39 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
40 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
41 ZEND_END_ARG_INFO()
42 
43 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_PDO_query, 0, 1, PDOStatement, MAY_BE_FALSE)
44 	ZEND_ARG_TYPE_INFO(0, query, IS_STRING, 0)
45 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fetchMode, IS_LONG, 1, "null")
46 	ZEND_ARG_VARIADIC_TYPE_INFO(0, fetchModeArgs, IS_MIXED, 0)
47 ZEND_END_ARG_INFO()
48 
49 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_PDO_quote, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
50 	ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
51 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "PDO::PARAM_STR")
52 ZEND_END_ARG_INFO()
53 
54 #define arginfo_class_PDO_rollBack arginfo_class_PDO_beginTransaction
55 
56 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_PDO_setAttribute, 0, 2, _IS_BOOL, 0)
57 	ZEND_ARG_TYPE_INFO(0, attribute, IS_LONG, 0)
58 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
59 ZEND_END_ARG_INFO()
60 
61 
62 ZEND_METHOD(PDO, __construct);
63 ZEND_METHOD(PDO, beginTransaction);
64 ZEND_METHOD(PDO, commit);
65 ZEND_METHOD(PDO, errorCode);
66 ZEND_METHOD(PDO, errorInfo);
67 ZEND_METHOD(PDO, exec);
68 ZEND_METHOD(PDO, getAttribute);
69 ZEND_METHOD(PDO, getAvailableDrivers);
70 ZEND_METHOD(PDO, inTransaction);
71 ZEND_METHOD(PDO, lastInsertId);
72 ZEND_METHOD(PDO, prepare);
73 ZEND_METHOD(PDO, query);
74 ZEND_METHOD(PDO, quote);
75 ZEND_METHOD(PDO, rollBack);
76 ZEND_METHOD(PDO, setAttribute);
77 
78 
79 static const zend_function_entry class_PDO_methods[] = {
80 	ZEND_ME(PDO, __construct, arginfo_class_PDO___construct, ZEND_ACC_PUBLIC)
81 	ZEND_ME(PDO, beginTransaction, arginfo_class_PDO_beginTransaction, ZEND_ACC_PUBLIC)
82 	ZEND_ME(PDO, commit, arginfo_class_PDO_commit, ZEND_ACC_PUBLIC)
83 	ZEND_ME(PDO, errorCode, arginfo_class_PDO_errorCode, ZEND_ACC_PUBLIC)
84 	ZEND_ME(PDO, errorInfo, arginfo_class_PDO_errorInfo, ZEND_ACC_PUBLIC)
85 	ZEND_ME(PDO, exec, arginfo_class_PDO_exec, ZEND_ACC_PUBLIC)
86 	ZEND_ME(PDO, getAttribute, arginfo_class_PDO_getAttribute, ZEND_ACC_PUBLIC)
87 	ZEND_ME(PDO, getAvailableDrivers, arginfo_class_PDO_getAvailableDrivers, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
88 	ZEND_ME(PDO, inTransaction, arginfo_class_PDO_inTransaction, ZEND_ACC_PUBLIC)
89 	ZEND_ME(PDO, lastInsertId, arginfo_class_PDO_lastInsertId, ZEND_ACC_PUBLIC)
90 	ZEND_ME(PDO, prepare, arginfo_class_PDO_prepare, ZEND_ACC_PUBLIC)
91 	ZEND_ME(PDO, query, arginfo_class_PDO_query, ZEND_ACC_PUBLIC)
92 	ZEND_ME(PDO, quote, arginfo_class_PDO_quote, ZEND_ACC_PUBLIC)
93 	ZEND_ME(PDO, rollBack, arginfo_class_PDO_rollBack, ZEND_ACC_PUBLIC)
94 	ZEND_ME(PDO, setAttribute, arginfo_class_PDO_setAttribute, ZEND_ACC_PUBLIC)
95 	ZEND_FE_END
96 };
97 
register_class_PDO(void)98 static zend_class_entry *register_class_PDO(void)
99 {
100 	zend_class_entry ce, *class_entry;
101 
102 	INIT_CLASS_ENTRY(ce, "PDO", class_PDO_methods);
103 	class_entry = zend_register_internal_class_ex(&ce, NULL);
104 	class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
105 
106 	return class_entry;
107 }
108