PHP为什么要逐渐废弃一些函数

如题所述

第1个回答  2017-04-02
从PHP5.3开始加入了一个新的报错级别DEPRECATED,即将废弃/过期。
在php5.3被放弃的函数有:
call_user_method() //使用 call_user_func() 替代
call_user_method_array() //使用 call_user_func_array() 替代
define_syslog_variables()
dl()
ereg() //使用 preg_match() 替代
ereg_replace() //使用 preg_replace() 替代
eregi() //使用 preg_match() 配合 'i' 修正符替代
eregi_replace() //使用 preg_replace() 配合 'i' 修正符替代
set_magic_quotes_runtime() //以及它的别名函数 magic_quotes_runtime()
session_register() //使用 $_SESSION 超全部变量替代
session_unregister() //使用 $_SESSION 超全部变量替代
session_is_registered() //使用 $_SESSION 超全部变量替代
set_socket_blocking() //使用 stream_set_blocking() 替代本回答被网友采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网