Project

General

Profile

Actions

Bug #1510

open

many php functions are deprecated at php 5.3

Added by Anchi Cheng almost 13 years ago. Updated almost 12 years ago.

Status:
Assigned
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
01/06/2012
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.2.0
Show in known bugs:
No
Workaround:

Description

We use widely ereg, eregi, ereg_replace. split, and assigning the return value of new by reference.

See php documentation on deprecated warning for what to do in most cases.

whereever we use

$new_val = & new $class();

need to remove &

Actions #1

Updated by Anchi Cheng almost 13 years ago

  • Status changed from New to Assigned

These are all committed into redux branch. Will merge back to trunk when all functions for CentOS 6 works.

Actions #2

Updated by Anchi Cheng over 12 years ago

ereg -> preg_match

ereg_replace -> preg_replace

use "%" as the marker for quoting preg_match and preg_match pattern. Need to add that to most statement where '$' or '/' are used as part of the pattern.

Actions #3

Updated by Amber Herold almost 12 years ago

  • Affected Version changed from Appion/Leginon 2.2.0 (trunk) to Appion/Leginon 2.2.0

Removed any remaining "= &new". I have not tested it. Please code review to ensure no typos.
Needs to be merged to 2.2 Redux branch.

The PEAR library has 2 occurrences, one in PEAR.php and another in smtp.php. We may want to update PEAR.

Actions

Also available in: Atom PDF