The newer internal parameter parsing API has been applied across all the extensions bundled with PHP 5.3.x. This parameter parsing API causes functions to return NULL when passed incompatible parameters. There are some exceptions to this rule, such as the get_class() function, which will continue to return FALSE on error.
在PHP5.3.x的所有绑定扩展中应用了新的内部参数解析API,当给函数传递了不兼容的参数时将返回NULL.但有一些例外,比如函数get_class在出现错误时将会返回FALSE。
clearstatcache() no longer clears the realpath cache by default.
clearstatcache()将不再清除默认缓存的realpath。
realpath() is now fully platform-independent.
realpath()现在是完全平台无关的
The call_user_func() family of functions now propagate $this even if the callee is a parent class.
call_user_func函数族即使被调用者是一个父类也使用$this
The array functions natsort(), natcasesort(), usort(), uasort(), uksort(), array_flip(), and array_unique() no longer accept objects passed as arguments. To apply these functions to an object, cast the object to an array first.
数组函数natsort(), natcasesort(), usort(), uasort(), uksort(), array_flip(), 和 array_unique()将不再接受对象做为参数,在将这些函数应用于对象时,请首先将对象转换为数组。
The behaviour of functions with by-reference parameters called by value has changed. Where previously the function would accept the by-value argument, a warning is now emitted and all by-ref parameters are set to NULL.
使用引用传递参数的方法在使用传值调用时的行为有所改变,以前此方法可以接受按值传递的参数,现在将会输出一个警告并且所有引用传递的参数将被设置为NULL。
The new mysqlnd library necessitates the use of MySQL 4.1's newer 41-byte password format. Continued use of the old 16-byte passwords will cause mysql_connect() and similar functions to emit the error, "mysqlnd cannot connect to MySQL 4.1+ using old authentication."
新的mysqlnd类要求使用比MySQL4.1新的41位的密码格式。使用旧的16位的密码将会导致mysql_connect和类似的函数产生错误,"mysqlnd不能使用旧的认证连接Mysql4.1及以上的版本"。
The trailing / has been removed from the SplFileInfo class and other related directory classes.
trailing 已经从SplFileInfo类和其它相关的目录类中删除。
The __toString magic method can no longer accept arguments.
__toString方法将不再接受参数
The magic methods __get, __set, __isset, __unset, and __call must always be public and can no longer be static. Method signatures are now enforced.
魔术方法__get,__set,__isset,__unset 和__call必需为 public 而且不在是静态方法. 方法标识现在是强制性的。
The __call magic method is now invoked on access to private and protected methods.
__call方法现在可以调用private和protected方法
上一篇:正则验证邮箱 下一篇:快递查询API