diff options
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r-- | ext/xml/xml.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 728a811f47..f9ddc740de 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -1109,7 +1109,11 @@ PHP_FUNCTION(xml_parser_create) Create an XML parser */ PHP_FUNCTION(xml_parser_create_ns) { +#if defined(HAVE_LIBXML) && defined(HAVE_XML) && !defined(HAVE_LIBEXPAT) && LIBXML_VERSION < 20600 + php_error_docref(NULL TSRMLS_CC, E_ERROR, "is broken with libxml2 %d. Please upgrade to libxml2 2.6", LIBXML_DOTTED_VERSION); +#else php_xml_parser_create_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); +#endif } /* }}} */ |