Archive for January, 2010

5.3.1 vs oci8 1.4.0

oci8 1.4.0需要一个env 就是ORACLE_HOME 这个东西如果没有,就歇菜,根本就连不上数据库了,这可真是头疼了 Read the rest of this entry »

No Comments

php 5.2.x –> php 5.3.x升级过程..

先是有这个帖子

5.3.x新增了一个goto函数。。结果我的项目里面有的goto函数全出问题了~~

被放弃的函数有:
 ereg()
 eregi();
 set_magic_quotes_runtime();
 split
 mysql_close();  //将不支持全部关闭, 需要改为:mysql_close($link);

以下变更:
 magic_quotes_gpc()       将永远为1;
Zend Optimizer   仍然没有支持.
 
该弃用的函数群

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

 

 

其实我们要对付的就是split这种函数

if(!function_exists(‘split’))

{

function split($a,$b,$c=null)

{

   return explode($a,$b,$c);

}

}

No Comments