Actions
Bug #514
openereg Deprecated in PHP 5.3.0
Start date:
Due date:
% Done:
0%
Estimated time:
Billable:
Estimatedhours:
Hours:
Totalhours:
Resolution:
Story points:
-
Description
There are many files using ereg (eregi, ereg_replace, etc.). These should be replaced with preg, as specified in the PHP manual:
"Note: As of PHP 5.3.0, the regex extension is deprecated in favor of the PCRE extension. Calling this function will issue an E_DEPRECATED notice. See the list of differences for help on converting to PCRE.
Note: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg(). "
Perl-compatible extension (PCRE) doc is here:
http://www.php.net/manual/en/book.pcre.php
Differences between ereg and preg are here:
http://www.php.net/manual/en/reference.pcre.pattern.posix.php
Actions