Project

General

Profile

Actions

Bug #514

open

ereg Deprecated in PHP 5.3.0

Added by Madeleine Ball over 14 years ago. Updated almost 14 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

Actions

Also available in: Atom PDF