Here are my tests
********Test1
result of this script is a white page, "error" is not displayed, the same with error_reporting set to 0
ini_set("memory_limit","1M");
ini_set("error_reporting",E_ALL);
ini_set("display_errors",1);
ini_set("track_errors",true);
$img = @imagecreatefromjpeg("image source");
if (!$img) {
echo "error";
}
********Test2
result of this script is
Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 8192 bytes)
ini_set("memory_limit","1M");
ini_set("error_reporting",E_ALL);
ini_set("display_errors",1);
ini_set("track_errors",true);
$img = imagecreatefromjpeg("image source");
if (!$img) {
echo "error";
}
********Test3
result of this script is a white page, "error" is not displayed
ini_set("memory_limit","0M");
ini_set("error_reporting",0);
ini_set("display_errors",1);
ini_set("track_errors",true);
$img = imagecreatefromjpeg("image source");
if (!$img) {
echo "error";
}