1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 7ceaf5fc8e9c92bf192e824084a706794395ce1a */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Pdo_Sqlite_createAggregate, 0, 3, _IS_BOOL, 0)
5 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
6 	ZEND_ARG_TYPE_INFO(0, step, IS_CALLABLE, 0)
7 	ZEND_ARG_TYPE_INFO(0, finalize, IS_CALLABLE, 0)
8 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, numArgs, IS_LONG, 0, "-1")
9 ZEND_END_ARG_INFO()
10 
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Pdo_Sqlite_createCollation, 0, 2, _IS_BOOL, 0)
12 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
13 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
14 ZEND_END_ARG_INFO()
15 
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Pdo_Sqlite_createFunction, 0, 2, _IS_BOOL, 0)
17 	ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
18 	ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
19 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, num_args, IS_LONG, 0, "-1")
20 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
21 ZEND_END_ARG_INFO()
22 
23 #if !defined(PDO_SQLITE_OMIT_LOAD_EXTENSION)
24 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Pdo_Sqlite_loadExtension, 0, 1, IS_VOID, 0)
25 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
26 ZEND_END_ARG_INFO()
27 #endif
28 
29 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Pdo_Sqlite_openBlob, 0, 0, 3)
30 	ZEND_ARG_TYPE_INFO(0, table, IS_STRING, 0)
31 	ZEND_ARG_TYPE_INFO(0, column, IS_STRING, 0)
32 	ZEND_ARG_TYPE_INFO(0, rowid, IS_LONG, 0)
33 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, dbname, IS_STRING, 1, "\"main\"")
34 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "Pdo\\Sqlite::OPEN_READONLY")
35 ZEND_END_ARG_INFO()
36 
37 ZEND_METHOD(Pdo_Sqlite, createAggregate);
38 ZEND_METHOD(Pdo_Sqlite, createCollation);
39 ZEND_METHOD(Pdo_Sqlite, createFunction);
40 #if !defined(PDO_SQLITE_OMIT_LOAD_EXTENSION)
41 ZEND_METHOD(Pdo_Sqlite, loadExtension);
42 #endif
43 ZEND_METHOD(Pdo_Sqlite, openBlob);
44 
45 static const zend_function_entry class_Pdo_Sqlite_methods[] = {
46 	ZEND_ME(Pdo_Sqlite, createAggregate, arginfo_class_Pdo_Sqlite_createAggregate, ZEND_ACC_PUBLIC)
47 	ZEND_ME(Pdo_Sqlite, createCollation, arginfo_class_Pdo_Sqlite_createCollation, ZEND_ACC_PUBLIC)
48 	ZEND_ME(Pdo_Sqlite, createFunction, arginfo_class_Pdo_Sqlite_createFunction, ZEND_ACC_PUBLIC)
49 #if !defined(PDO_SQLITE_OMIT_LOAD_EXTENSION)
50 	ZEND_ME(Pdo_Sqlite, loadExtension, arginfo_class_Pdo_Sqlite_loadExtension, ZEND_ACC_PUBLIC)
51 #endif
52 	ZEND_ME(Pdo_Sqlite, openBlob, arginfo_class_Pdo_Sqlite_openBlob, ZEND_ACC_PUBLIC)
53 	ZEND_FE_END
54 };
55 
register_class_Pdo_Sqlite(zend_class_entry * class_entry_PDO)56 static zend_class_entry *register_class_Pdo_Sqlite(zend_class_entry *class_entry_PDO)
57 {
58 	zend_class_entry ce, *class_entry;
59 
60 	INIT_NS_CLASS_ENTRY(ce, "Pdo", "Sqlite", class_Pdo_Sqlite_methods);
61 	class_entry = zend_register_internal_class_with_flags(&ce, class_entry_PDO, ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
62 #if defined(SQLITE_DETERMINISTIC)
63 
64 	zval const_DETERMINISTIC_value;
65 	ZVAL_LONG(&const_DETERMINISTIC_value, SQLITE_DETERMINISTIC);
66 	zend_string *const_DETERMINISTIC_name = zend_string_init_interned("DETERMINISTIC", sizeof("DETERMINISTIC") - 1, 1);
67 	zend_declare_typed_class_constant(class_entry, const_DETERMINISTIC_name, &const_DETERMINISTIC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
68 	zend_string_release(const_DETERMINISTIC_name);
69 #endif
70 
71 	zval const_OPEN_READONLY_value;
72 	ZVAL_LONG(&const_OPEN_READONLY_value, SQLITE_OPEN_READONLY);
73 	zend_string *const_OPEN_READONLY_name = zend_string_init_interned("OPEN_READONLY", sizeof("OPEN_READONLY") - 1, 1);
74 	zend_declare_typed_class_constant(class_entry, const_OPEN_READONLY_name, &const_OPEN_READONLY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
75 	zend_string_release(const_OPEN_READONLY_name);
76 
77 	zval const_OPEN_READWRITE_value;
78 	ZVAL_LONG(&const_OPEN_READWRITE_value, SQLITE_OPEN_READWRITE);
79 	zend_string *const_OPEN_READWRITE_name = zend_string_init_interned("OPEN_READWRITE", sizeof("OPEN_READWRITE") - 1, 1);
80 	zend_declare_typed_class_constant(class_entry, const_OPEN_READWRITE_name, &const_OPEN_READWRITE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
81 	zend_string_release(const_OPEN_READWRITE_name);
82 
83 	zval const_OPEN_CREATE_value;
84 	ZVAL_LONG(&const_OPEN_CREATE_value, SQLITE_OPEN_CREATE);
85 	zend_string *const_OPEN_CREATE_name = zend_string_init_interned("OPEN_CREATE", sizeof("OPEN_CREATE") - 1, 1);
86 	zend_declare_typed_class_constant(class_entry, const_OPEN_CREATE_name, &const_OPEN_CREATE_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
87 	zend_string_release(const_OPEN_CREATE_name);
88 
89 	zval const_ATTR_OPEN_FLAGS_value;
90 	ZVAL_LONG(&const_ATTR_OPEN_FLAGS_value, PDO_SQLITE_ATTR_OPEN_FLAGS);
91 	zend_string *const_ATTR_OPEN_FLAGS_name = zend_string_init_interned("ATTR_OPEN_FLAGS", sizeof("ATTR_OPEN_FLAGS") - 1, 1);
92 	zend_declare_typed_class_constant(class_entry, const_ATTR_OPEN_FLAGS_name, &const_ATTR_OPEN_FLAGS_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
93 	zend_string_release(const_ATTR_OPEN_FLAGS_name);
94 
95 	zval const_ATTR_READONLY_STATEMENT_value;
96 	ZVAL_LONG(&const_ATTR_READONLY_STATEMENT_value, PDO_SQLITE_ATTR_READONLY_STATEMENT);
97 	zend_string *const_ATTR_READONLY_STATEMENT_name = zend_string_init_interned("ATTR_READONLY_STATEMENT", sizeof("ATTR_READONLY_STATEMENT") - 1, 1);
98 	zend_declare_typed_class_constant(class_entry, const_ATTR_READONLY_STATEMENT_name, &const_ATTR_READONLY_STATEMENT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
99 	zend_string_release(const_ATTR_READONLY_STATEMENT_name);
100 
101 	zval const_ATTR_EXTENDED_RESULT_CODES_value;
102 	ZVAL_LONG(&const_ATTR_EXTENDED_RESULT_CODES_value, PDO_SQLITE_ATTR_EXTENDED_RESULT_CODES);
103 	zend_string *const_ATTR_EXTENDED_RESULT_CODES_name = zend_string_init_interned("ATTR_EXTENDED_RESULT_CODES", sizeof("ATTR_EXTENDED_RESULT_CODES") - 1, 1);
104 	zend_declare_typed_class_constant(class_entry, const_ATTR_EXTENDED_RESULT_CODES_name, &const_ATTR_EXTENDED_RESULT_CODES_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
105 	zend_string_release(const_ATTR_EXTENDED_RESULT_CODES_name);
106 
107 	return class_entry;
108 }
109