おのたく日記 YouTubeも始めました→
2010-02-28(Sun) PHP 5.3のサイドイフェクト [長年日記]
■ [Debian]PHP 5.3のサイドイフェクト
昨日の日記でPHP5.3に上げたらscuttleやOpenPNEで「Deprecated: Assigning the return value of new by reference is deprecated in」という警告が表示され始めたのでerror_reporting(E_ALL ^ E_NOTICE);とある次の行に以下を追加
if (error_reporting() > 6143) {
error_reporting((E_ALL ^ E_NOTICE) & ~E_DEPRECATED );
}
[/usr/local/OpenPNE/config.phpより引用]
if (error_reporting() > 6143) {
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
}
[/usr/local/scuttle/header.inc.phpより引用]
|