php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29303 PHP returns Call to undefined function: preg_replace()
Submitted: 2004-07-21 15:39 UTC Modified: 2004-07-21 22:40 UTC
From: phpbugs at gushi dot org Assigned:
Status: Not a bug Package: Regexps related
PHP Version: 4.3.8 OS: FreeBSD 4.10-RELEASE (Others?)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbugs at gushi dot org
New email:
PHP Version: OS:

 

 [2004-07-21 15:39 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-21 22:40 UTC] iliaa@php.net
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. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 13:01:27 2024 UTC