php-5.0.5: Call to undefined function preg_replace error
|
bgaldino
Joined: 2004-04-07
Posts: 3 |
Posted: Sat, 2005-09-10 22:06
|
|
I'm running gentoo and am using apache, mysql and php from portage. I haven't been having any problems using gallery2 with this configuration until i upgraded to php-5.0.5 through portage and am now getting a basic fatal error: Fatal error: Call to undefined function preg_replace(). Is this a basic configuration issue on my part or is it indicative of a bug or other larger issue? I'm not much of a PHP guru, so I'm not really sure where to start to debug. Any help would be appreciated. I tried to roll back to php 4.4, but dependencies within portage packages make it difficult. Thanks- |
|

Posts: 32509
should be available in php 5. also, we tested g2 with php 5.0.x and it works.
see http://ch2.php.net/preg_replace
-> available in php 5.
special in your configuration is: "--without-pcre-regex"
you also have no pcre section in your phpinfo.
what i'd try:
change your gentoo emerge USE flags or override them just for php. and then emerge again (=recompile with new compile options, according to use flags).
Posts: 3
worked great - thanks for the tip.
I didn't have to set pcre as a USE flag before switching to PHP 5 in portage, so maybe they changed the default ebuild configuration.
Thanks again.
Posts: 32509
and i didn't know we'd get an error if the PCRE use flag isn't compiled into G2.
i guess we'll have to add a system check for that in the system checks step of the installer / upgrader.
thanks for reporting!