Re: Fatal error: Call to undefined function preg_match()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Barry wrote:
Evert wrote:

Hi all!

Recently I am getting the following error on some of my PHP-enabled websites. I think it started when I went from PHP4 -> PHP5.

Here is an example (from http://wos.poboxes.info/) :


Fatal error: Call to undefined function preg_match() in /var/www/wos.poboxes.info/htdocs/classes/ConfigData.php on line 114


What causes this? How can I fix it?
FYI: I use Cherokee (not Apache...)



Regards,
    Evert

On some pages?
So it works on the other pages on the same webserver?

Probably you have unset the function, or some file/php/include/script does.
Best way to test that is to put preg_match at the first line.

Is a htaccess causing trouble probably?

Since when can you "unset" functions from within php scripts?? (except with specialized modules, which we'll just ignore for now).

My guess here is that the PCRE-library was disabled during compilation of your PHP5 tree (check phpinfo for that). If so, you'll need to compile it in to have the functions.

- tul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux