X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/607b7e02d77e7326161e8ec15639052d2040f745..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-includes/atomlib.php diff --git a/wp-includes/atomlib.php b/wp-includes/atomlib.php index 368015ad..f2cba563 100644 --- a/wp-includes/atomlib.php +++ b/wp-includes/atomlib.php @@ -121,6 +121,11 @@ class AtomParser { array_unshift($this->ns_contexts, array()); + if ( ! function_exists( 'xml_parser_create_ns' ) ) { + trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) ); + return false; + } + $parser = xml_parser_create_ns(); xml_set_object($parser, $this); xml_set_element_handler($parser, "start_element", "end_element");