锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷

PHP 支锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷@锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭伙拷锟� PHP 锟斤拷锟绞街帮拷锟斤拷帽锟斤拷式锟斤拷锟杰诧拷锟斤拷锟斤拷锟轿何达拷锟斤拷锟斤拷息锟斤拷锟斤拷锟斤拷锟皆碉拷锟斤拷

锟斤拷锟斤拷锟� set_error_handler() 锟借定锟斤拷锟皆讹拷锟斤拷拇锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟饺伙拷岜伙拷锟斤拷茫锟斤拷锟斤拷谴舜锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷裕锟斤拷锟斤拷锟揭灿︼拷茫锟斤拷锟斤拷锟� error_reporting()锟斤拷锟斤拷锟矫猴拷锟斤拷锟节筹拷锟斤拷锟斤拷锟角帮拷锟� @ 时锟斤拷锟斤拷锟斤拷 0锟斤拷

锟斤拷锟斤拷锟斤拷锟斤拷锟� track_errors 锟斤拷锟皆o拷锟斤拷锟绞斤拷锟斤拷锟斤拷锟斤拷锟斤拷魏未锟斤拷锟斤拷锟较拷锟斤拷锟斤拷锟斤拷锟节憋拷锟斤拷 $php_errormsg 锟叫★拷锟剿憋拷锟斤拷锟斤拷每锟轿筹拷锟斤拷时锟斤拷锟结被锟斤拷锟角o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷幕锟斤拷锟揭拷锟斤拷锟斤拷椤�

<?php
/* Intentional file error */
$my_file = @file ('non_existent_file') or
    die (
"Failed opening file: error was '$php_errormsg'");

// this works for any expression, not just functions:
$value = @$cache[$key];
// will not issue a notice if the index $key doesn't exist.

?>

Note: @ 锟斤拷锟斤拷锟街伙拷锟�锟斤拷锟绞�锟斤拷效锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷说一锟斤拷锟津单的癸拷锟斤拷锟斤拷牵锟斤拷锟斤拷锟杰达拷某锟斤拷锟矫碉拷值锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷前锟斤拷锟斤拷锟� @ 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷纾拷锟斤拷园锟斤拷锟斤拷锟斤拷诒锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� include 锟斤拷锟矫o拷锟斤拷锟斤拷锟斤拷锟饺碉拷之前锟斤拷锟斤拷锟杰帮拷锟斤拷锟斤拷锟节猴拷锟斤拷锟斤拷锟斤拷亩锟斤拷锟街帮拷锟揭诧拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷峁癸拷锟斤拷锟� if 锟斤拷 foreach 锟饺★拷

锟轿硷拷 error_reporting() 锟斤拷锟街诧拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷志锟斤拷锟斤拷锟斤拷锟叫癸拷锟铰节★拷

Warning

目前锟斤拷"@"锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷前缀锟斤拷锟斤拷使锟斤拷锟铰脚憋拷锟斤拷止锟斤拷锟斤拷锟截达拷锟斤拷拇锟斤拷蟊ǜ锟揭彩э拷锟斤拷锟斤拷锟轿讹拷锟斤拷锟斤拷锟斤拷某锟斤拷锟斤拷锟斤拷锟节伙拷锟斤拷锟矫达拷锟斤拷锟斤拷母锟侥猴拷锟斤拷锟斤拷锟斤拷前锟斤拷锟斤拷"@"锟斤拷锟斤拷锟狡达拷锟斤拷锟斤拷息锟斤拷锟角脚憋拷锟斤拷没锟斤拷锟轿何硷拷锟斤拷锟斤拷示原锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷铩�