#25370 [NEW]: showing garbage

From: Date: Tue, 02 Sep 2003 23:41:42 +0000
Subject: #25370 [NEW]: showing garbage
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47104@lists.php.net to get a copy of this message
From: aamirrajpoot at hotmail dot com Operating system: XP with IIS PHP version: 4.3.3 PHP Bug Type: *Compile Issues Bug description: showing garbage Description: ------------ well here is the code and the result infront of u . i m very new to php. well done many things coz i know the asp and someother . but never done about GD or created the images on fly. so testing something with gd lib. just done remove the semicollon from the extension to run php_gd2.dll file . Reproduce code: --------------- <? header ("Content-type: image/gif"); $im = @ImageCreateFromGIF ("d:\php\php.gif"); if(!$im) { $img_handle = ImageCreate (200, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 235, 235, 51); ImageString ($img_handle, 10, 25, 5, "Image Not Found", $txt_color); ImagePng ($img_handle); } Else { echo "Image is Found"; } ?> <htmL> <head><title>My first app</title></head><body bgcolor=red></body></html> Expected result: ---------------- well expect result is that to show me an image the image not fonund or simply print the text image is found and it is on the red bg. with the title of the document is my first app but instead of this all the result is very different... Actual result: -------------- ‰PNG  IHDRÈòjà‰PLTE ëë3'‡5z—IDATxœc`~ÀL2¶ ù@‚ .Ñ9Æ „Ødža‘Ñm?~ñã3›: æcÒe³39ÅŒÛÒ$äÛÒ¤gœC’9“&Á¸í0Ð43iÞ6$™óoÒ0ÎÃ&s#ýcV™7ÌŒ}i’ lÉÖ<{ìÍΧ?üÀØfÃtÛÁÛ<·´à öBíì,£C*7IEND®B`‚ -- Edit bug report at http://bugs.php.net/?id=25370&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25370&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25370&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25370&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25370&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25370&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25370&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25370&r=support Expected behavior: http://bugs.php.net/fix.php?id=25370&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25370&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25370&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25370&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25370&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25370&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25370&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25370&r=gnused

« previous php.bugs (#47104) next »