We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f60134a + 595b746 commit 5a2084bCopy full SHA for 5a2084b
ext/libxml/libxml.c
@@ -40,6 +40,7 @@
40
#ifdef LIBXML_SCHEMAS_ENABLED
41
#include <libxml/relaxng.h>
42
#include <libxml/xmlschemas.h>
43
+#include <libxml/xmlschemastypes.h>
44
#endif
45
46
#include "php_libxml.h"
@@ -928,7 +929,14 @@ PHP_LIBXML_API void php_libxml_initialize(void)
928
929
if (!php_libxml_initialized) {
930
/* we should be the only one's to ever init!! */
931
ZEND_IGNORE_LEAKS_BEGIN();
932
+
933
xmlInitParser();
934
+#ifdef LIBXML_SCHEMAS_ENABLED
935
+ xmlSchemaInitTypes();
936
+#endif
937
+#ifdef LIBXML_RELAXNG_ENABLED
938
+ xmlRelaxNGInitTypes();
939
940
ZEND_IGNORE_LEAKS_END();
941
942
php_libxml_default_entity_loader = xmlGetExternalEntityLoader();
0 commit comments