复制粘贴...作废函数如下: 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() [color=olive]session_register() (使用 $_SESSION 超全部变量替代) session_unregister() (使用 $_SESSION 超全部变量替代) session_is_registered() (使用 $_SESSION 超全部变量替代) set_socket_blocking() (使用 stream_set_blocking() 替代) split() (使用 preg_split() 替代) spliti() (使用 preg_split() 配合 ‘i’ 修正符替代) sql_regcase() mysql_db_query() (使用 mysql_select_db() 和 mysql_query() 替代) mysql_escape_string() (使用 mysql_real_escape_string() 替代) 废弃以字符串传递区域设置名称. 使用 LC_* 系列常量替代. mktime() 的 is_dst 参数. 使用新的时区处理函数替代. 处理方法:editplus编辑器中,正则替换 替换ereg(),eregi():用preg_match替换 ereg\("([^"]+)"替换为:preg_match("/\1/" ereg\('([^"]+)'替换为:preg_match('/\1/' eregi\("([^"]+)"替换为:preg_match("/\1/i" eregi\('([^"]+)'替换为:preg_match('/\1/i' 替换ereg_replace(),eregi_replace():用preg_replace()替换 ereg_replace\("([^"]+)"替换为:preg_replace("/\1/" ereg_replace\('([^"]+)'替换为:preg_replace('/\1/' ereg_ireplace\("([^"]+)"替换为:preg_replace("/\1/i" ereg_ireplace\('([^"]+)'替换为:preg_replace('/\1/i' 如果 ereg_replace 的第一个参数不是正则表达式,可以用 str_replace 直接来替换 split用explode替换或preg_split替换
解决方案 »
- 40多K PHP实现 ORM 数据库类 教程二 CRUD操作
- 如何让设置的cookie立即生效
- PDT怎么加载我下载下来的PHP的源码?
- 有谁知道这个URL代表什么意思?
- ●●●php.ini 中设定将session保存为cookie会不会不安全?
- 如何在mysql数据表中 合理存放 博客 标签 的问题
- 请php高手谈谈从初级到高级的程序理念(欢迎积极发言)
- session问题
- 这个程序为什么不能把一个指定的WORD文档显示在当前的浏览器窗口中?
- 在asp 中取当时间为now 或者 time 再或者为 date 在php中用什么呢?
- 【初学php】输入localhost/php文件名怎么出来下载该文件的提示啊?怎么解决呢?
- kindeditor问题
难道说的是这个函数参数
date_default_timezone_set('Asia/Shanghai');
以后全变成:
date_default_timezone_set(LC_*);
LC_COLLATE for string comparison, see strcoll()
LC_CTYPE for character classification and conversion, for example strtoupper()
LC_MONETARY for localeconv()
LC_NUMERIC for decimal separator (See also localeconv())
LC_TIME for date and time formatting with strftime()
LC_MESSAGES for system responses (available if PHP was compiled with libintl)<?php
/* Set locale to Dutch */
setlocale(LC_ALL, 'nl_NL');/* Output: vrijdag 22 december 1978 */
echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));/* try different possible locale names for german as of PHP 4.3.0 */
$loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
echo "Preferred locale for german on this system is '$loc_de'";
?>
=&使用=替换最近刚把项目移到5.3,除了自己写的扩展不支持,其它测试下来没有任何影响,还算幸运。
另一些你可以把你的代码用正则替换下。