1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 4bde2f5c4e55b6e0c273b0d8605cb765cc9f8400 */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_streams_context, 0, 1, IS_VOID, 0)
5 ZEND_ARG_INFO(0, context)
6 ZEND_END_ARG_INFO()
7
8 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_use_internal_errors, 0, 0, _IS_BOOL, 0)
9 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, use_errors, _IS_BOOL, 1, "null")
10 ZEND_END_ARG_INFO()
11
12 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_libxml_get_last_error, 0, 0, LibXMLError, MAY_BE_FALSE)
13 ZEND_END_ARG_INFO()
14
15 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_get_errors, 0, 0, IS_ARRAY, 0)
16 ZEND_END_ARG_INFO()
17
18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_clear_errors, 0, 0, IS_VOID, 0)
19 ZEND_END_ARG_INFO()
20
21 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_disable_entity_loader, 0, 0, _IS_BOOL, 0)
22 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, disable, _IS_BOOL, 0, "true")
23 ZEND_END_ARG_INFO()
24
25 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_external_entity_loader, 0, 1, _IS_BOOL, 0)
26 ZEND_ARG_TYPE_INFO(0, resolver_function, IS_CALLABLE, 1)
27 ZEND_END_ARG_INFO()
28
29
30 ZEND_FUNCTION(libxml_set_streams_context);
31 ZEND_FUNCTION(libxml_use_internal_errors);
32 ZEND_FUNCTION(libxml_get_last_error);
33 ZEND_FUNCTION(libxml_get_errors);
34 ZEND_FUNCTION(libxml_clear_errors);
35 ZEND_FUNCTION(libxml_disable_entity_loader);
36 ZEND_FUNCTION(libxml_set_external_entity_loader);
37
38
39 static const zend_function_entry ext_functions[] = {
40 ZEND_FE(libxml_set_streams_context, arginfo_libxml_set_streams_context)
41 ZEND_FE(libxml_use_internal_errors, arginfo_libxml_use_internal_errors)
42 ZEND_FE(libxml_get_last_error, arginfo_libxml_get_last_error)
43 ZEND_FE(libxml_get_errors, arginfo_libxml_get_errors)
44 ZEND_FE(libxml_clear_errors, arginfo_libxml_clear_errors)
45 ZEND_DEP_FE(libxml_disable_entity_loader, arginfo_libxml_disable_entity_loader)
46 ZEND_FE(libxml_set_external_entity_loader, arginfo_libxml_set_external_entity_loader)
47 ZEND_FE_END
48 };
49
50
51 static const zend_function_entry class_LibXMLError_methods[] = {
52 ZEND_FE_END
53 };
54
register_class_LibXMLError(void)55 static zend_class_entry *register_class_LibXMLError(void)
56 {
57 zend_class_entry ce, *class_entry;
58
59 INIT_CLASS_ENTRY(ce, "LibXMLError", class_LibXMLError_methods);
60 class_entry = zend_register_internal_class_ex(&ce, NULL);
61
62 zval property_level_default_value;
63 ZVAL_UNDEF(&property_level_default_value);
64 zend_string *property_level_name = zend_string_init("level", sizeof("level") - 1, 1);
65 zend_declare_typed_property(class_entry, property_level_name, &property_level_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
66 zend_string_release(property_level_name);
67
68 zval property_code_default_value;
69 ZVAL_UNDEF(&property_code_default_value);
70 zend_string *property_code_name = zend_string_init("code", sizeof("code") - 1, 1);
71 zend_declare_typed_property(class_entry, property_code_name, &property_code_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
72 zend_string_release(property_code_name);
73
74 zval property_column_default_value;
75 ZVAL_UNDEF(&property_column_default_value);
76 zend_string *property_column_name = zend_string_init("column", sizeof("column") - 1, 1);
77 zend_declare_typed_property(class_entry, property_column_name, &property_column_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
78 zend_string_release(property_column_name);
79
80 zval property_message_default_value;
81 ZVAL_UNDEF(&property_message_default_value);
82 zend_string *property_message_name = zend_string_init("message", sizeof("message") - 1, 1);
83 zend_declare_typed_property(class_entry, property_message_name, &property_message_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
84 zend_string_release(property_message_name);
85
86 zval property_file_default_value;
87 ZVAL_UNDEF(&property_file_default_value);
88 zend_string *property_file_name = zend_string_init("file", sizeof("file") - 1, 1);
89 zend_declare_typed_property(class_entry, property_file_name, &property_file_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING));
90 zend_string_release(property_file_name);
91
92 zval property_line_default_value;
93 ZVAL_UNDEF(&property_line_default_value);
94 zend_string *property_line_name = zend_string_init("line", sizeof("line") - 1, 1);
95 zend_declare_typed_property(class_entry, property_line_name, &property_line_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
96 zend_string_release(property_line_name);
97
98 return class_entry;
99 }
100