[pmwiki-users] preg_replace(): The /e modifier is deprecated

Paul Bloch paul at cs.uoregon.edu
Mon Jun 23 14:07:54 CDT 2014

Just upgraded our server and am getting these messages in the log.  I read about it on PmWiki.org and in testing each cookbook recipe it appears that the fault is in the HtpasswdForm recipe.  I only get the error messages when I go to the password form page. We are using ['Version'] = '2008-10-27' which appears to be the latest.

I don't know PHP well enough to see where the problem lies.  I only find preg_replace in these lines:

htpasswdform.php:    $user = "'" . preg_replace("/'/", "\\'", $user) . "'";
htpasswdform.php:  return preg_replace(array('/^(["\'])(.*)\\1$/', '/\\\(["\'])/'),

More information about the pmwiki-users mailing list