Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ext/libxml/libxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#ifdef LIBXML_SCHEMAS_ENABLED
#include <libxml/relaxng.h>
#include <libxml/xmlschemas.h>
#include <libxml/xmlschemastypes.h>
#endif

#include "php_libxml.h"
Expand Down Expand Up @@ -933,7 +934,11 @@ PHP_LIBXML_API void php_libxml_initialize(void)
if (!_php_libxml_initialized) {
/* we should be the only one's to ever init!! */
ZEND_IGNORE_LEAKS_BEGIN();

xmlInitParser();
#ifdef LIBXML_SCHEMAS_ENABLED
xmlSchemaInitTypes();
#endif
ZEND_IGNORE_LEAKS_END();

_php_libxml_default_entity_loader = xmlGetExternalEntityLoader();
Expand Down
Loading