Project

General

Profile

Actions

Bug #514

open

ereg Deprecated in PHP 5.3.0

Added by Madeleine Ball almost 14 years ago. Updated about 13 years ago.

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

Updated by Ward Vandewege about 13 years ago

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

Also available in: Atom PDF