The XMLReader extension was initially a PECL extension for PHP 5. It was later moved to the PHP source (bundled) as of PHP 5.1.0, and later enabled by default as of PHP 5.1.2.
此扩展默认为启用,编译时可通过下列选项禁用: --disable-xmlreader
Miguel Cruz (2012-06-11 01:06:04)
If you are having trouble loading this extension (perhaps with a log message like 'Undefined symbol "dom_node_class_entry"'), make sure that you have xmlreader.so listed AFTER dom.so in php.ini.
s dot coletta at unidata dot it (2009-05-27 09:43:43)
When you type:
pecl install XMLReader
and installation fails with this error:
Fatal error: Call to undefined function preg_match() in /usr/share/pear/PEAR/Frontend/CLI.php on line 57
You can temporarily fix it by removing the -n flag from the pecl script.
By removing the -n flag it will use your php.ini.
alvaro at digdib dot com (2009-01-02 02:33:33)
Gentoo users: emerge does not compile dev-lang/php with --enable-xmlreader by default. To enable this option, add the flag xmlreader to your USE variable and recompile php.