What are the deprecated functions in PHP 5.3.0

Published on Author bloggeroneLeave a comment

The list of functions that are deprecated in PHP 5.3.0:

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

    Ref:

    http://php.net/manual/en/migration53.deprecated.php

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *