thanks for that. i have tracked it down to the function imagecreatefromjpeg. it should come back as false. but on my server, it just dies. i did finally get 1 error logged, with a memory size exhausted.
the problem is here, and considering the php function is just dying, i'm not sure how to even handle it:
Code:
function load_imageGD($src_name) {
// create an image of the given filetype
$file_ext = substr($src_name, strrpos($src_name, '.'));
switch (strtolower($file_ext)) {
case '.gif':
if(!function_exists("imagecreatefromgif")) return false;
$image = @imagecreatefromgif($src_name);
break;
case '.png':
if(!function_exists("imagecreatefrompng")) return false;
$image = @imagecreatefrompng($src_name);
break;
case '.jpg':
case '.jpeg':
if(!function_exists("imagecreatefromjpeg")) return false;
$image = @imagecreatefromjpeg($src_name);
break;
}
return $image;
}
Bookmarks