PHP 5.3 and 5.5 obsolete/outdated function collation
Do PHP believe all know, starting from PHP5.3 to join a new error level deprecated, will be discarded/expired. We have a version to come.
The functions that are discarded in php5.3 are:
The code is as follows |
|
call_user_method () (using Call_user_func () overrides) Call_user_method_array () (using Call_user_func_array () Override) Define_syslog_variables () DL () Ereg () (Use Preg_match () overrides) Ereg_replace () (Use Preg_replace () overrides) Eregi () (Replace with Preg_match () with ' i ' modifier) Eregi_replace () (replaced with preg_replace () with ' i ' modifier) Set_magic_quotes_runtime () and its alias function magic_quotes_runtime () Session_register () (Replace with $_session all variables) Session_unregister () (using $_session Super all variable Overrides) Session_is_registered () (Replace with $_session all variables) Set_socket_blocking () (using stream_set_blocking () overrides) Split () (using Preg_split () overrides) Spliti () (Replace with Preg_split () with ' i ' modifier) Sql_regcase () Mysql_db_query () (using M ysql_select_db () and mysql_query () override) Mysql_escape_string () (using mysql_real_escape_string () overrides) Mysql_close (); All closures will not be supported and need to be changed to: Mysql_close ($link); |
Obsolete to pass the locale name as a string. Use the Lc_* series constants instead.
The IS_DST parameter of the Mktime (). Use the new time zone handler function override.
PHP 5.4
The code is as follows |
|
Mcrypt_generic_end () Mysql_list_dbs () |
PHP 5.5
The code is as follows |
|
MCRYPT_CBC () MCRYPT_CFB () MCRYPT_ECB () MCRYPT_OFB () |
Of these, PHP 5.3 is the beginning of the obsolete function, a lot of common former regular ereg all replace preg, this fortunately I know before. All replaced, but magic quotes: Since PHP 5.3 has been deprecated, PHP 5.4 has been removed. This is a big change in PHP 5.3.
PHP 5.4 began to add a lot of features, this can be searched online, many new special wording. May follow the new wording, the old programmer can not understand very much ~ ~ ~
PHP 5.5 How to say, just found today ~ actually put MySQL this extension removed, recommended to use MYSQLI or PDO ... With 5.5 of many programs will be error, indicating that mysql_connect will expire ~ ~ ~ See the following error
Deprecated:mysql_connect (): The MySQL extension is Deprecated and would be a removed in the Future:use mysqli or PDO Instea D in E:testnew 6.php to line 6
PHP5 is the most important part of the class relative to 4, and the effect is to discard the old habits. Although the version has been upgraded, but eventually the market is still a large number of 5.1.6-5.2.17. 5.3 began to discard many features, resulting in a lot of programs also dare not directly on, 5.5. Direct seconds kill a lot of open-source hehe ~ ~ ~
http://www.bkjia.com/PHPjc/834972.html www.bkjia.com true http://www.bkjia.com/PHPjc/834972.html techarticle PHP 5.3 and 5.5 obsolete/outdated functions to do PHP believe all know that from PHP5.3 began to join a new error level deprecated, will be discarded/expired. We have a version to come. In the ...