View Issue Details

IDProjectCategoryView StatusLast Update
0015554phplist applicationphpListpublic04-09-12 17:54
Reporterh2b2 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.10.12 
Target VersionFutureDevelopmentsFixed in Version2.11.7 
Summary0015554: System incompatibility: deprecated PHP functions lead to trouble when running PHP 5.3+
DescriptionA number of PHP functions and ini directives currently used in phpList have been deprecated in PHP 5.3+. These include ereg_replace(), eregi_replace(), safe_mode, register_globals, magic_quotes_gpc, etc.
Ref: http://php.net/manual/en/migration53.deprecated.php

The phpList code in the 2.10.x and 2.11.x branches will need updating to avoid system incompatibilities.
Additional InformationSeveral phpList users with PHP 5.3 systems reported having issues running phpList, and the number of forum reports can be expected to rise quickly as more hosting providers start equipping their servers with PHP 5.3.
Related forum threads:
http://forums.phplist.com/viewtopic.php?f=24&t=28050
http://forums.phplist.com/viewtopic.php?f=3&t=31936

TagsNo tags attached.

Relationships

parent of 0015273 resolvedmichiel Check for safe_mode wrong 

Activities

h2b2

26-10-10 05:45

manager   ~0051135

Last edited: 26-10-10 05:57

View 2 revisions

A search in the code shows that phpList 2.10.12 makes use of the following deprecated functions and ini directives:

INI directives deprecated in PHP 5.3:
  register_globals
  safe_mode
  magic_quotes_gpc
  magic_quotes_runtime

Functions deprecated in PHP 5.3:
  ereg()
  ereg_replace()
  eregi()
  eregi_replace()
  set_magic_quotes_runtime()
  split()
  mysql_db_query()

h2b2

26-01-11 01:55

manager   ~0051154

For bug fixes related to confirmation emails not working (v2.10.12, PHP 5.3.3) see this forum thread: http://forums.phplist.com/viewtopic.php?p=83199#p83199

michiel

28-04-11 14:02

manager   ~0051176

I've gone through deprecation stuff quite a bit in trunk, and it's better to keep these things there.

michiel

30-05-12 23:46

manager   ~0051653

removed any "ereg" I could find.
http://phplist.svn.sourceforge.net/phplist/?rev=3267&view=rev

now checking for the other ones

michiel

31-05-12 00:11

manager   ~0051654

removed any use of "split"
http://phplist.svn.sourceforge.net/phplist/?rev=3272&view=rev

michiel

31-05-12 00:18

manager   ~0051655

removed single unused instance of "mysql_db_query"
http://phplist.svn.sourceforge.net/phplist/?rev=3273&view=rev

michiel

31-05-12 00:33

manager   ~0051656

set_magic_quotes_runtime() is only used in phpMailer

michiel

31-05-12 01:30

manager   ~0051657


Some of this has possibly made the minimum requirement to be PHP 5.3

not sure that's desirable, but it may not be a big problem. No idea about PHP version statistics at this stage.

michiel

31-05-12 01:35

manager   ~0051658

this site suggests 95% of PHP sites use PHP 5

http://w3techs.com/technologies/details/pl-php/all/all

michiel

04-09-12 17:54

manager   ~0051731

afaict all deprecated functions have been removed in 2.11.7