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.
Instalación
La extensión XMLReader está disponible en PECL como desde PHP 5.0.0 y está incluida y habilitada como desde PHP 5.1.0 por defecto. Puede ser habilitada por adición de argumentos --enable-xmlreader (o --with-xmlreader antes de 5.1.0) para configurar la línea.
Esta extensión está habilitada por defecto. Se puede inhabilitar usando la siguiente opción al momento de compilar: --disable-xmlreader
s dot coletta at unidata dot it
27-May-2009 04:43
alvaro at digdib dot com
02-Jan-2009 10: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.
