From: phpbugs at gushi dot org
Operating system: FreeBSD 4.10-RELEASE (Others?)
PHP version: 4.3.8
PHP Bug Type: Regexps related
Bug description: PHP returns Call to undefined function: preg_replace()
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 bug report at http://bugs.php.net/?id=29303&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29303&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29303&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29303&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29303&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29303&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29303&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29303&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29303&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29303&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29303&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29303&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29303&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29303&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29303&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29303&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29303&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29303&r=float