1--TEST-- 2testing @ and error_reporting - 10 3--FILE-- 4<?php 5 6error_reporting(E_ALL); 7 8function make_exception() 9{ 10 @$blah; 11 str_replace(); 12 error_reporting(0); 13 throw new Exception(); 14} 15 16try { 17 @make_exception(); 18} catch (Exception $e) {} 19 20var_dump(error_reporting()); 21 22error_reporting(E_ALL&~E_NOTICE); 23 24try { 25 @make_exception(); 26} catch (Exception $e) {} 27 28var_dump(error_reporting()); 29 30echo "Done\n"; 31?> 32--EXPECTF-- 33int(32767) 34int(32759) 35Done 36