【OS名】windows7 【PHPのバージョン】5.3.8 【連携ソフトウェア】XAMPP1.77(apacheは2.22.1) localhost環境です。 【質問内容】 Deprecated: Assigning the return value of new by reference is deprecated の表示を避けるためにエラー表示をphpファイルで変更したいのですが、うまくいきません。 ファイルの最初に <?php ini_set('display_errors', 0); error_reporting(0); 中略 $hoge =& new $fuga(); ?> としてもエラーが表示されます。 ※php.iniでerror_reporting = 0にすれば表示しなくなります。