The 5.3.x version of PHP has brought the “retirement” of certain php.ini directives, in addition to these functions are considered deprecated even some native first widely used.
The list of features deprecated hours is not short, an innovation that is already forcing many developers to change their style in programming:
- call_user_method () to be replaced with call_user_func () ;
- call_user_method_array () to be replaced with call_user_func_array () ;
- define_syslog_variables () ;
- dl () ;
- ereg () to be replaced by preg_match () ;
- ereg_replace () to be replaced with preg_replace () ;
- eregi () to be replaced by preg_match () using the modifier “i”;
- eregi_replace () to be replaced with preg_replace () using the modifier “i”;
- set_magic_quotes_runtime () and alias, magic_quotes_runtime () ;
- session_register () to be replaced by $ _SESSION ;
- session_unregister () to be replaced by $ _SESSION ;
- session_is_registered () to be replaced by $ _SESSION ;
- set_socket_blocking () to be replaced with stream_set_blocking () ;
- split () to be replaced by preg_split () ;
- split () to be replaced by preg_split () using the modifier “i”;
- sql_regcase () ;
- mysql_db_query () to be replaced with mysql_select_db () and mysql_query () ;
- mysql_escape_string () to be replaced with mysql_real_escape_string () .
Moreover, it is now deprecated parameter is_dst function mktime () , and instead must use the new features for managing the timezone.