With the MRBS block I was recently alerted to the PHP deprecation (as of 5.3.0) of ereg_replace. It looks like through most of Moodle 2.0 the ereg_replace and eregi_replace calls have been replaced with preg_replace; however, a search of the code base shows that it is still present in some places in Moodle 2.0 and widely through 1.9. Since preg_replace is PHP 4 compatible it seems safe to just replace it but with PHP 5.3.0 being the current stable release it seems important to make sure we clean up the code so as to avoid folks getting the deprecation warnings. Peace - Anthony
- has a non-specific relationship to
-
MDL-20876 Remove instances of deprecated php function split
- Closed
-
MDL-20877 Remove deprecated php function set_magic_quotes_runtime
- Closed
-
MDL-20878 Remove deprecated function mysql_escape_string
- Closed
-
MDL-20879 Removed deprecated function define_syslog_variables
- Closed
-
MDL-20880 Remove deprecated function dl
- Closed
- has been marked as being related by
-
CONTRIB-1619 Review PHP 5.3.0 deprecated functions usage in MRBS block and update accordingly
- Closed
-
MDL-20881 Remove deprecated function session_unregister
- Closed
- will be (partly) resolved by
-
MDL-19415 PHP 5.3 compatibility fixes META
- Closed