2019独角兽企业重金招聘Python工程师标准>>>

PHP 5.3.0 introduces two new error levels: E_DEPRECATED and E_USER_DEPRECATED. The E_DEPRECATED error level is used to indicate that a function or feature has been deprecated. The E_USER_DEPRECATED level is intended for indicating deprecated features in user code, similarly to the E_USER_ERROR and E_USER_WARNING levels.

The following is a list of deprecated INI directives. Use of any of these INI directives will cause an E_DEPRECATEDerror to be thrown at startup.

■define_syslog_variables
■register_globals 【默认应该是off,为了安全性起见】
■register_long_arrays 【用短的$_GET等,而不是$HTTP_GET_VARS】
■safe_mode
■magic_quotes_gpc 【默认应该是Off,为了避免移植性的问题,另外数据库的安全性问题,应该交给应用层来做】
■magic_quotes_runtime
■magic_quotes_sybase

■Comments starting with '#' are now deprecated in .INI files.【那就使用;来注释吧 】

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.

Deprecated features:
■Assigning the return value of new by reference is now deprecated.
■Call-time pass-by-reference is now deprecated.
■The use of {} to access string offsets is deprecated. Use [] instead.
ereg开头的函数,已经不建议使用了。

转载于:https://my.oschina.net/u/130017/blog/14761

PHP 5.3 中不建议使用的(部分)函数列表相关推荐

  1. KERNEL32.DLL中可供调用的API函数列表

      KERNEL32.DLL中可供调用的API函数列表,如下: ActivateActCtx AddAtomA AddAtomW AddConsoleAliasA AddConsoleAliasW A ...

  2. [每日一问]虚拟化网络设计中为什么建议采用链路聚合

    虚拟化网络设计中为什么建议采用链路聚合?原因如下: 1. 首先,链路聚合技术可以使用多个物理链路进行通信,不用担心STP: 2. 其次,当某物理链路发生故障会不影响虚拟机网络的正常运行,提供了链路冗余 ...

  3. 为什么VS(visual studio)中会建议宏 #define 转换为constexpr?

    如图: 原因: 宏是由预处理器而非编译器解析的,比如不能用命名空间,所以使用后必须解除 以及宏很容易带来各式各样的错误,最简单如括号上的错误,还有宏会导致debug困难等等 参考文章:为什么VS中会建 ...

  4. 5分绩点转4分_高考语文如何考上120分?衡中老师建议:这5点高中生必须重视

    语文提分难,是许多高中学生.家长公认的一件事情. 然而作为三大主科之一,对于想考985.211等名校的同学,把语文成绩提高到最少120+,是你们不得不面对的一道门槛. 很多人抱怨,语文知识点内容繁杂, ...

  5. SQL中不建议使用 where 1=1 的说法,是错误的

    SQL中不建议使用 where 1=1 的原因 where1=1不影响SQL性能,也不会导致索引失效.因为SQL优化器已经将where1=1过滤了. e1=1过滤了.

  6. Android Studio TV开发教程(十五) Android N及更早版本中的建议

    Android Studio TV开发教程 (转自Android官网https://developer.android.com/training/tv/start) 文章源自:光谷佳武 https:/ ...

  7. 数据分析报告中的“建议”部分该怎么写?【简明版】

    作者:陈老师 个人公众号:接地气学堂 陈老师新课:商业分析全攻略 https://edu.hellobi.com/course/308 用数据分析方法解决商业问题,目前已经100+学员加入!5星好评. ...

  8. 输入在一行中给出两个正整数m和n(m≤n),以空格分隔。按照格式“result = 组合数计算结果”输出。题目保证结果在double类型范围内。建议定义和调用函数fact(n)计算n!

    本题要求编写程序,根据公式C​n​m​​=​m!(n−m)!​​n!​​算出从n个不同元素中取出m个元素(m≤n)的组合数. 建议定义和调用函数fact(n)计算n!,其中n的类型是int,函数类型是 ...

  9. 深拷贝和原型原型链和web api 和 this指向等(中初级前端面事题)持续更新中,建议收藏

    深拷贝 值类型的赋值就是深拷贝:变量赋值时,拷贝的不是内存地址,而是将数据完整的在内存中复制了一份 const a = 10const b = aconsole.log(b); 浅拷贝 引用类型(nu ...

最新文章

  1. 用C#获取硬盘序列号,CPU序列号,网卡MAC地址
  2. word python 域 操作_python实现在windows下操作word的方法
  3. 本地化ASPXPivotGrid控件
  4. Java设计模式-装饰者设计模式
  5. 翻译 Real-Time Global Localization of Robotic Cars in Lane Level via Lane Marking Detection and Shape
  6. FFplay硬件加速
  7. 高能!一大波奇葩挖矿方式来袭~
  8. 单片机c语言轻松入门 完整版,单片机C语言轻松入门
  9. openvino系列 13. 使用 OpenVINO 多模型级联使用:车辆检测与识别示例
  10. 通达OA2008从windows环境移植到linux部署手册
  11. 2.14 视图的分页预览以及分页符的使用 [原创Excel教程]
  12. (转) latch 入门
  13. 如何设置QQ空间免费背景音乐
  14. 期货用期权对冲(期货用期权对冲吗)
  15. jquery插件封装
  16. 董明珠“跳槽不用” VS雷军“复仇者联盟”,人才在内还是在外?
  17. php array =%3e变,https ipcrs.pbccrc.org.cn php的json和数组转换
  18. 名帖49 王羲之 小楷《黄庭经》
  19. 英文DIAMAUND钻石
  20. php如何留后门,ThinkPHP留后门技巧

热门文章

  1. 如何获得Oracle系统性能统计? Oracle大型数据库系统在AIXUNIX上的实战详解 集中讨论 14...
  2. 介绍两个好玩的和Github相关的Chrome扩展
  3. elasticsearch分布式搜索配置文件详解
  4. C#拉姆达(=)表达式
  5. 数据库开发基本操作-关于sql server 2005 未开放1433端口的问题
  6. 让你二十年后仍是人才
  7. sql语句语法多表关联_SQL Delete语句-如何删除行或表,语法示例
  8. linux java内存分析_Java内存分析利器MAT使用详解
  9. 带哨兵节点的链_【算法导论】10.2不带哨兵节点和带哨兵节点的双向链表
  10. (C++)求Fibonacci数列的第n个数的两种方法