In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "which PHP5.3 and 5. 5 obsolete and expired functions". In daily operation, I believe many people have doubts about which PHP5.3 and 5. 5 abandoned and expired functions. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of "which PHP5.3 and 5. 5 abandoned and expired functions". Next, please follow the editor to study!
The functions that are discarded in php5.3 are:
Call_user_method () / replace call_user_method_array () with call_user_func () / / replace define_syslog_variables () dl () ereg () with call_user_func_array () / replace ereg_replace () with preg_match () / / replace eregi () with preg_replace () / / replace eregi_ with preg_match () with the'i' modifier Replace () / replace set_magic_quotes_runtime () / with the'i' modifier with preg_replace () and its alias function magic_quotes_runtime () session_register () / replace session_unregister () with $_ SESSION super-all variables / / replace session_is_registered () with $_ SESSION super-all variables / / replace set_socket_blocking with $_ SESSION super-all variables () / replace split () with stream_set_blocking () / / replace spliti () with preg_split () / / replace sql_regcase () mysql_db_query () with preg_split () with the'i' modifier / / replace mysql_escape_string () with mysql_select_db () and mysql_query () instead of mysql_close () with mysql_real_escape_string () / / all shutdowns will not be supported and need to be changed to: mysql_close ($link)
Discards passing the locale name as a string. Use LC_* series constants instead.
The is_dst parameter of mktime (). Use the new time zone handler instead.
PHP 5.4:
Mcrypt_generic_end () mysql_list_dbs ()
PHP 5.5:
Mcrypt_cbc () mcrypt_cfb () mcrypt_ecb () mcrypt_ofb ()
Among them, PHP 5.3 is the beginning of obsolete functions, and many commonly used former regular ereg all replace preg, but magic quotes. Unexpectedly, it has also been deprecated since PHP 5.3.The PHP 5.4has been removed. This is a big change in PHP 5.3.
A lot of new features have been added to PHP 5.4. you can search for this online and add a lot of special writing. Maybe according to the new way of writing, the old programmer doesn't know much about it.
As for PHP 5. 5, the extension MYSQL has been removed. It is recommended to use MYSQLI or PDO. Many programs will report errors, indicating that mysql_connect is about to expire! You will see the following error:
Deprecated: mysql_connect (): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:testnew 6.php on line 6 at this point, the study of "which PHP5.3 and 5.5 obsolete and expired functions" is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.