| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-07-21 22:40 UTC] iliaa@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
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