- 论坛徽章:
- 0
|
PHP 4.2.x 与 4.3.x 的区别???
原帖由 "tonera" 发表:
PHP是自4.2.0起默认值为 register_globals = off。
楼主得把相关代码贴出来,大家才好回答。
另:调低警报级别应该没问题了。
对默认情况下, register_globals = off.
根据你的提示,我看了警报级别的设置.确实跟以前的不一样.
原帖由 "php.ini中error_reporting设置" 发表:
PHP 4.2.x
error_reporting = E_ALL & ~E_NOTICE
PHP 4.3.x
error_reporting = E_ALL
我把 error_reporting = E_ALL 改为 error_reporting = E_ALL ~E_NOTICE, 就OK了!Thanks!
这是php.ini中的解释:
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string) |
|