#29303 [Opn->Bgs]: PHP returns Call to undefined function: preg_replace()
| From: | iliaa@php.net | Date: | Wed, 21 Jul 2004 20:40:59 +0000 |
| Subject: | #29303 [Opn->Bgs]: PHP returns Call to undefined function: preg_replace() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63284@lists.php.net to get a copy of this message | ||
ID: 29303
Updated by: iliaa@php.net
Reported By: phpbugs at gushi dot org
-Status: Open
+Status: Bogus
Bug Type: Regexps related
Operating System: FreeBSD 4.10-RELEASE (Others?)
PHP Version: 4.3.8
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
You simply don't have the PCRE extension compiled.
Previous Comments:
------------------------------------------------------------------------
[2004-07-21 15:39:59] phpbugs at gushi dot org
Description:
------------
Using PHP 4.3.8 a call to the function preg_replace yields the error:
Call to undefined function: preg_replace()
Similar behavior is not seen with php 4.3.7 built with the same
configure arguments (--with-apxs --with-mysql=/usr/local)
Reproduce code:
---------------
The code producing the bug is VBulletin, in the following function:
$scriptpath = preg_replace('/(s|sessionhash)=[a-z0-9]{32}?&?/', '',
$scriptpath);
Expected result:
----------------
The variable $scriptpath to be set.
Actual result:
--------------
Fatal error: Call to undefined function: preg_replace() in
/usr/home/admin/community/includes/init.php on line 268
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29303&edit=1