note 30895 added to function.include

From: Date: Wed, 02 Apr 2003 13:48:35 +0000
Subject: note 30895 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-46126@lists.php.net to get a copy of this message
note on sysopopfor at usa dot net's note Using @ is always bad but with include it goes dramatically worse. @include supress ANY error messages from included file, even parse errors. So, you gonna spend hours to locate your bug. I hope simple is_readable() checking is enough to handle possible errors except parse ones. But, if there is error, you have to see it, don't hide! hide from who? From end user? turn display_errors off and log_errors on. From yourself? You kidding? -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+30895 http://master.php.net/manage/user-notes.php?action=delete+30895 http://master.php.net/manage/user-notes.php?action=reject+30895

« previous php.notes (#46126) next »