From: peteralien2003 at yahoo dot com
Operating system: Win XP Pro
PHP version: 4.3.2
PHP Bug Type: Unknown/Other Function
Bug description: Image-bug in PHP
Description:
------------
I have:
Win XP Pro
IIS 5.1
PHP 4.3.2
GD 2.0.12
Reproduce code:
---------------
<?
Header("Content-type: image/png");
$img = ImageCreate(115,55);
$ip = $_SERVER['REMOTE_ADDR'];
$alt = "(c) 2003 Peter Alien";
//ImageColorTransparent($img,$bgcolor);
$bgColor = ImageColorAllocate($img, 0x2c,0x6D,0xAF); // blue
$shadow = ImageColorAllocate($img, 84,84,84); // gray
$textColor = ImageColorAllocate($img, 0,0,0); // black
$white = ImageColorAllocate($img, 255,255,255); //left upper corner
ImageRectangle($img,0,0,115-1,55-1,$shadow); //shadow effect
ImageRectangle($img,0,0,115,55,$white);
ImageTTFText($img,10,0,5,20,$shadow,"times.ttf","$ip\n\r$alt"); // text
shadow effect
ImageTTFText($img,10,0,4,19,$textColor,"times.ttf","$ip\n\r$alt"); //
text color
//ImageJpeg($img);
ImagePng($img);
ImageDestroy($img);
?>
Expected result:
----------------
It was supposed to appear an image with the IP of the machine in the
browser.
Actual result:
--------------
Sometimes appears an image but other times it just appears the placehold
of it, even when i refresh the browser.
--
Edit bug report at http://bugs.php.net/?id=24690&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24690&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24690&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24690&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24690&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24690&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24690&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24690&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24690&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24690&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24690&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24690&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24690&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24690&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24690&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24690&r=gnused