Bug #514

ereg Deprecated in PHP 5.3.0

Added by Madeleine Ball about 9 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assigned To:
Target version:
-
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

History

#1 Updated by Ward Vandewege over 8 years ago

  • Project changed from External to GET-Evidence
  • Category deleted (GET-Evidence)

Also available in: Atom PDF