Deprecated functions in PHP 5.3.x

Posted on November 8 2009 by zemog

Whether we like it or not, some of the functions we are using will be deprecated in the future releases of PHP. If you will update your PHP to a newer version (which you should), consider checking the functions you have used to avoid Deprecation Errors.

Deprecated functions:

* call_user_method() (use call_user_func() instead)
* call_user_method_array() (use call_user_func_array() instead)
* define_syslog_variables()
* dl()
* ereg() (use preg_match() instead)
* ereg_replace() (use preg_replace() instead)
* eregi() (use preg_match() with the ‘i’ modifier instead)
* eregi_replace() (use preg_replace() with the ‘i’ modifier instead)
* set_magic_quotes_runtime() and its alias, magic_quotes_runtime()
* session_register() (use the $_SESSION superglobal instead)
* session_unregister() (use the $_SESSION superglobal instead)
* session_is_registered() (use the $_SESSION superglobal instead)
* set_socket_blocking() (use stream_set_blocking() instead)
* split() (use preg_split() instead)
* spliti() (use preg_split() with the ‘i’ modifier instead)
* sql_regcase()
* mysql_db_query() (use mysql_select_db() and mysql_query() instead)
* mysql_escape_string() (use mysql_real_escape_string() instead)
* Passing locale category names as strings is now deprecated. Use the LC_* family of constants instead.
* The is_dst parameter to mktime(). Use the new timezone handling functions instead.

I hope the list will help.

Source: www.php.net


Share This Post

Comments are closed.