Jump to content

[SOLVED] preg_match undefined?


schilly

Recommended Posts

Ok ran this:

<?php
if (function_exists('preg_match')) {
    echo "preg_match available.<br />\n";
} else {
    echo "preg_match not available.<br />\n";
}
?>

 

And it said it wasn't available. How do I enable it? Do I have to recompile PHP or is it an ini setting?

Here is the configuration:

 

'./configure' '--prefix=/usr/local/php5' '--with-config-file-scan-dir=/usr/local/php5/etc' '--with-apxs2=/usr/local/apache2/bin/apxs' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--disable-cli' '--disable-cgi' '--enable-zend-multibyte' '--with-regex=system'

 

> php -m

date

libxml

Reflection

standard

 

[Zend Modules]

 

>

Wow, i loved seeing the '--disable-all' part of that php build string! There's security and then there's paranoia ;)

 

I know, I loved that part too!  I've never seen that option used at all, ever. O_O  Good thing you can't disable PCRE in PHP 5.3>. :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.