index.php:
// STUFF
// STEP 1: imagecreatetruecolor ONLY IF GD 2.0+ SUPPORTED AND FOUND
if ($this->isSuccessful && !$hasMogrified && $image && !$newImage && function_exists('imagecreatetruecolor') && preg_match('/2\.0/i', $this->gd_info_array[0])) {
$newImage = @imagecreatetruecolor($configArray['width'], $configArray['height']);
if (!$newImage) {
$this->isSuccessful = false;
$this->setErrorArray(array('action' => 'Could not seem to create new image'));
}
}
This block of code will sometimes, for reasons I just don't understand, cause a forced-download of the entire index.php script! This is not even a consistent issue inasmuch as this only happens to certain JPEG images. I am completely unable to discern a pattern; it happens to some JPEG images and not to others; furthermore, this behavior does not occur in GIF or PNG images.
I am using PHP 4.3.9 with GD 2.0.1 in Linux RHEL 4.
Thanx
Phil