从 PHP 5.2.x 移植到 PHP 5.3.x
在线手册:中文 英文
PHP手册

不向下兼容的变化

尽管大多数现有的 PHP 5 代码无需改变就可以工作,但是请注意一些不向下兼容的变化:

以下关键词被保留,将不能被用作函数名, 类名等。


从 PHP 5.2.x 移植到 PHP 5.3.x
在线手册:中文 英文
PHP手册
PHP手册 - N: 不向下兼容的变化

用户评论:

mahbub at mahbubblog dot com (22-Sep-2010 05:36)

If you're having the mysql connectivity problem for the short password format,there is a fix written by Mixu here

http://tinyurl.com/324pjer

Boris 'borzakov' Ploujoux (14-Sep-2010 02:17)

For those who often use the short open tag notations <? ... ?> and mostly <?= $var ?> (useful for template files) instead of standard notation <?php ... ?> : be careful !

In 5.3 version, the setting directive of the first notation is not PHP_INI_ALL anymore but PHP_INI_PERDIR.
In other words, you can't enable the "short_open_tag" directive directly with ini_set() function anymore ; you'll now have to set it in php.ini or httpd.conf (if you have access to it), or per-dir with .htaccess files.

See : http://www.php.net/manual/en/ini.core.php#ini.short-open-tag

munaw at munaw dot com (25-Aug-2010 04:32)

gd_info():
    Note:
    Previous to PHP 5.3.0, the JPEG Support attribute was named JPG Support.

Be aware of this, in case you verify GD image support by this attribute!

mitek17 sobaka gmail.com (14-Apr-2010 07:42)

After php version > 5.2.9 flush() stopped working. As a result the  output buffer will not be returned at all.

scott dot mcnaught at synergy8 dot com (07-Oct-2009 03:34)

fopen('/dev/stdin/') no longer works
use fopen('php://stdin') instead

Cheers,
Scott

Chris Bolt (16-Sep-2009 03:03)

call_user_func_array() no longer accepts null as a second parameter and calls the function. It now emits a warning and does not call the function.