1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 5b4ce3f5f7dee60bde803b3c2eb3994777f56914 */
3
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_importStylesheet, 0, 1, _IS_BOOL, 0)
5 ZEND_ARG_TYPE_INFO(0, stylesheet, IS_OBJECT, 0)
6 ZEND_END_ARG_INFO()
7
8 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_XSLTProcessor_transformToDoc, 0, 1, MAY_BE_OBJECT|MAY_BE_FALSE)
9 ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
10 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, returnClass, IS_STRING, 1, "null")
11 ZEND_END_ARG_INFO()
12
13 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_transformToUri, 0, 2, IS_LONG, 0)
14 ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
15 ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
16 ZEND_END_ARG_INFO()
17
18 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_XSLTProcessor_transformToXml, 0, 1, MAY_BE_STRING|MAY_BE_NULL|MAY_BE_FALSE)
19 ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
20 ZEND_END_ARG_INFO()
21
22 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_setParameter, 0, 2, _IS_BOOL, 0)
23 ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
24 ZEND_ARG_TYPE_MASK(0, name, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
25 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 1, "null")
26 ZEND_END_ARG_INFO()
27
28 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_XSLTProcessor_getParameter, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
29 ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
30 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
31 ZEND_END_ARG_INFO()
32
33 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_removeParameter, 0, 2, _IS_BOOL, 0)
34 ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
35 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
36 ZEND_END_ARG_INFO()
37
38 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_hasExsltSupport, 0, 0, _IS_BOOL, 0)
39 ZEND_END_ARG_INFO()
40
41 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_registerPHPFunctions, 0, 0, IS_VOID, 0)
42 ZEND_ARG_TYPE_MASK(0, functions, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
43 ZEND_END_ARG_INFO()
44
45 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_registerPHPFunctionNS, 0, 3, IS_VOID, 0)
46 ZEND_ARG_TYPE_INFO(0, namespaceURI, IS_STRING, 0)
47 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
48 ZEND_ARG_TYPE_INFO(0, callable, IS_CALLABLE, 0)
49 ZEND_END_ARG_INFO()
50
51 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_setProfiling, 0, 1, IS_TRUE, 0)
52 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 1)
53 ZEND_END_ARG_INFO()
54
55 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_setSecurityPrefs, 0, 1, IS_LONG, 0)
56 ZEND_ARG_TYPE_INFO(0, preferences, IS_LONG, 0)
57 ZEND_END_ARG_INFO()
58
59 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_getSecurityPrefs, 0, 0, IS_LONG, 0)
60 ZEND_END_ARG_INFO()
61
62 ZEND_METHOD(XSLTProcessor, importStylesheet);
63 ZEND_METHOD(XSLTProcessor, transformToDoc);
64 ZEND_METHOD(XSLTProcessor, transformToUri);
65 ZEND_METHOD(XSLTProcessor, transformToXml);
66 ZEND_METHOD(XSLTProcessor, setParameter);
67 ZEND_METHOD(XSLTProcessor, getParameter);
68 ZEND_METHOD(XSLTProcessor, removeParameter);
69 ZEND_METHOD(XSLTProcessor, hasExsltSupport);
70 ZEND_METHOD(XSLTProcessor, registerPHPFunctions);
71 ZEND_METHOD(XSLTProcessor, registerPHPFunctionNS);
72 ZEND_METHOD(XSLTProcessor, setProfiling);
73 ZEND_METHOD(XSLTProcessor, setSecurityPrefs);
74 ZEND_METHOD(XSLTProcessor, getSecurityPrefs);
75
76 static const zend_function_entry class_XSLTProcessor_methods[] = {
77 ZEND_ME(XSLTProcessor, importStylesheet, arginfo_class_XSLTProcessor_importStylesheet, ZEND_ACC_PUBLIC)
78 ZEND_ME(XSLTProcessor, transformToDoc, arginfo_class_XSLTProcessor_transformToDoc, ZEND_ACC_PUBLIC)
79 ZEND_ME(XSLTProcessor, transformToUri, arginfo_class_XSLTProcessor_transformToUri, ZEND_ACC_PUBLIC)
80 ZEND_ME(XSLTProcessor, transformToXml, arginfo_class_XSLTProcessor_transformToXml, ZEND_ACC_PUBLIC)
81 ZEND_ME(XSLTProcessor, setParameter, arginfo_class_XSLTProcessor_setParameter, ZEND_ACC_PUBLIC)
82 ZEND_ME(XSLTProcessor, getParameter, arginfo_class_XSLTProcessor_getParameter, ZEND_ACC_PUBLIC)
83 ZEND_ME(XSLTProcessor, removeParameter, arginfo_class_XSLTProcessor_removeParameter, ZEND_ACC_PUBLIC)
84 ZEND_ME(XSLTProcessor, hasExsltSupport, arginfo_class_XSLTProcessor_hasExsltSupport, ZEND_ACC_PUBLIC)
85 ZEND_ME(XSLTProcessor, registerPHPFunctions, arginfo_class_XSLTProcessor_registerPHPFunctions, ZEND_ACC_PUBLIC)
86 ZEND_ME(XSLTProcessor, registerPHPFunctionNS, arginfo_class_XSLTProcessor_registerPHPFunctionNS, ZEND_ACC_PUBLIC)
87 ZEND_ME(XSLTProcessor, setProfiling, arginfo_class_XSLTProcessor_setProfiling, ZEND_ACC_PUBLIC)
88 ZEND_ME(XSLTProcessor, setSecurityPrefs, arginfo_class_XSLTProcessor_setSecurityPrefs, ZEND_ACC_PUBLIC)
89 ZEND_ME(XSLTProcessor, getSecurityPrefs, arginfo_class_XSLTProcessor_getSecurityPrefs, ZEND_ACC_PUBLIC)
90 ZEND_FE_END
91 };
92
register_php_xsl_symbols(int module_number)93 static void register_php_xsl_symbols(int module_number)
94 {
95 REGISTER_LONG_CONSTANT("XSL_CLONE_AUTO", 0, CONST_PERSISTENT);
96 REGISTER_LONG_CONSTANT("XSL_CLONE_NEVER", -1, CONST_PERSISTENT);
97 REGISTER_LONG_CONSTANT("XSL_CLONE_ALWAYS", 1, CONST_PERSISTENT);
98 REGISTER_LONG_CONSTANT("XSL_SECPREF_NONE", XSL_SECPREF_NONE, CONST_PERSISTENT);
99 REGISTER_LONG_CONSTANT("XSL_SECPREF_READ_FILE", XSL_SECPREF_READ_FILE, CONST_PERSISTENT);
100 REGISTER_LONG_CONSTANT("XSL_SECPREF_WRITE_FILE", XSL_SECPREF_WRITE_FILE, CONST_PERSISTENT);
101 REGISTER_LONG_CONSTANT("XSL_SECPREF_CREATE_DIRECTORY", XSL_SECPREF_CREATE_DIRECTORY, CONST_PERSISTENT);
102 REGISTER_LONG_CONSTANT("XSL_SECPREF_READ_NETWORK", XSL_SECPREF_READ_NETWORK, CONST_PERSISTENT);
103 REGISTER_LONG_CONSTANT("XSL_SECPREF_WRITE_NETWORK", XSL_SECPREF_WRITE_NETWORK, CONST_PERSISTENT);
104 REGISTER_LONG_CONSTANT("XSL_SECPREF_DEFAULT", XSL_SECPREF_DEFAULT, CONST_PERSISTENT);
105 REGISTER_LONG_CONSTANT("LIBXSLT_VERSION", LIBXSLT_VERSION, CONST_PERSISTENT);
106 REGISTER_STRING_CONSTANT("LIBXSLT_DOTTED_VERSION", LIBXSLT_DOTTED_VERSION, CONST_PERSISTENT);
107 #if defined(HAVE_XSL_EXSLT)
108 REGISTER_LONG_CONSTANT("LIBEXSLT_VERSION", LIBEXSLT_VERSION, CONST_PERSISTENT);
109 #endif
110 #if defined(HAVE_XSL_EXSLT)
111 REGISTER_STRING_CONSTANT("LIBEXSLT_DOTTED_VERSION", LIBEXSLT_DOTTED_VERSION, CONST_PERSISTENT);
112 #endif
113 }
114
register_class_XSLTProcessor(void)115 static zend_class_entry *register_class_XSLTProcessor(void)
116 {
117 zend_class_entry ce, *class_entry;
118
119 INIT_CLASS_ENTRY(ce, "XSLTProcessor", class_XSLTProcessor_methods);
120 class_entry = zend_register_internal_class_with_flags(&ce, NULL, 0);
121
122 zval property_doXInclude_default_value;
123 ZVAL_FALSE(&property_doXInclude_default_value);
124 zend_string *property_doXInclude_name = zend_string_init("doXInclude", sizeof("doXInclude") - 1, 1);
125 zend_declare_typed_property(class_entry, property_doXInclude_name, &property_doXInclude_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
126 zend_string_release(property_doXInclude_name);
127
128 zval property_cloneDocument_default_value;
129 ZVAL_FALSE(&property_cloneDocument_default_value);
130 zend_string *property_cloneDocument_name = zend_string_init("cloneDocument", sizeof("cloneDocument") - 1, 1);
131 zend_declare_typed_property(class_entry, property_cloneDocument_name, &property_cloneDocument_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
132 zend_string_release(property_cloneDocument_name);
133
134 zval property_maxTemplateDepth_default_value;
135 ZVAL_UNDEF(&property_maxTemplateDepth_default_value);
136 zend_string *property_maxTemplateDepth_name = zend_string_init("maxTemplateDepth", sizeof("maxTemplateDepth") - 1, 1);
137 zend_declare_typed_property(class_entry, property_maxTemplateDepth_name, &property_maxTemplateDepth_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
138 zend_string_release(property_maxTemplateDepth_name);
139
140 zval property_maxTemplateVars_default_value;
141 ZVAL_UNDEF(&property_maxTemplateVars_default_value);
142 zend_string *property_maxTemplateVars_name = zend_string_init("maxTemplateVars", sizeof("maxTemplateVars") - 1, 1);
143 zend_declare_typed_property(class_entry, property_maxTemplateVars_name, &property_maxTemplateVars_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
144 zend_string_release(property_maxTemplateVars_name);
145
146 return class_entry;
147 }
148