index.php:
[PHP]
// STUFF
// STEP 1: imagecreatetrue color ONLY IF GD 2.0+ SUPPORTED AND FOUND
if ($this->isSuccessful && !$hasMogrified && $image && !$newImage &&
function_exists ('imagecreatetr uecolor') && preg_match('/2\.0/i',
$this->gd_info_arra y[0])) {
$newImage = @imagecreatetru ecolor($configA rray['width'],
$configArray['height']);
if (!$newImage) {
$this->isSuccessful = false;
$this->setErrorArray( array('action' ='Could not seem to create
new image'));
}
}
[/PHP]
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
[PHP]
// STUFF
// STEP 1: imagecreatetrue color ONLY IF GD 2.0+ SUPPORTED AND FOUND
if ($this->isSuccessful && !$hasMogrified && $image && !$newImage &&
function_exists ('imagecreatetr uecolor') && preg_match('/2\.0/i',
$this->gd_info_arra y[0])) {
$newImage = @imagecreatetru ecolor($configA rray['width'],
$configArray['height']);
if (!$newImage) {
$this->isSuccessful = false;
$this->setErrorArray( array('action' ='Could not seem to create
new image'));
}
}
[/PHP]
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
Comment