ID:               29158
 Comment by:       alexis at nospamplz dot hotmail dot com
 Reported By:      admin at profvince dot com
 Status:           Open
 Bug Type:         PCRE related
 Operating System: Linux 2.6.6 - LFS 5.1pre1
 PHP Version:      5.0.0
 New Comment:

Just wanted to add that I tried it with PHP 5.0.1 and got the same
issue.


Fatal error: Call to undefined function preg_match()

Error Line
----------
var_dump(preg_match("undefined", "this function is undefined"));

Config
------
PHP 5.0.1
FreeBSD 5.2.1-RELEASE


Previous Comments:
------------------------------------------------------------------------

[2004-08-25 22:47:10] webmaster at xphpx dot net

Same problem here with php 5.0.1

------------------------------------------------------------------------

[2004-08-25 07:20:48] ppanula at lapua dot net

I have same problem.

As far i can see, php 5.0.x uses it old pcre-routines. If you have your
own pcre-installed it does not use them. You can check using phpinfo()
and you can see it's old pcre even if you have never installed.

------------------------------------------------------------------------

[2004-08-23 20:03:49] alexisdal at nospamplease dot hotmail dot com

Same problem here : 

Fatal error: Call to undefined function preg_match()


Error Line
----------
var_dump(preg_match("undefined", "this function is undefined"));


Config
------
PHP 5.0.0
FreeBSD 5.2.1-RELEASE


I'm kinda new to *nix setup and I could not reproduce the bug under
windows. In the documentation about this
(http://fr2.php.net/manual/en/ref.pcre.php), it says nothing needs to
be setup in order to use the thing... ???

------------------------------------------------------------------------

[2004-07-30 01:55:25] gaui at gaui dot is

When I try to use preg_match(), I get this...

Fatal error: Call to undefined function preg_match() in
/usr/home/www/library/defines.php on line 25

-----------------
Error line
-----------------

if (!preg_match('@([0-9]{1,2}).([0-9]{1,2}).([0-9]{1,2})@',
phpversion(), $match))

-----------------
Environment
-----------------

FreeBSD 4.10-STABLE
PHP 5.0.0
Apache 1.3.31
MySQL 4.0.20

-----------------
PHP Configure
-----------------

--enable-versioning
--enable-memory-limit
--with-layout=GNU
--disable-all
--enable-libxml
--with-libxml-dir=/usr/local
--enable-spl
--with-regex=php
--disable-cli
--with-apxs=/usr/local/sbin/apxs
--disable-ipv6
--prefix=/usr/local

------------------------------------------------------------------------

[2004-07-30 01:43:15] gaui at gaui dot is

Same problem here.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29158

-- 
Edit this bug report at http://bugs.php.net/?id=29158&edit=1

Reply via email to