#33543 [NEW]: create a 1 pixel true color image

From: Date: Sat, 02 Jul 2005 00:45:09 +0000
Subject: #33543 [NEW]: create a 1 pixel true color image
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81281@lists.php.net to get a copy of this message
From: m dot stoesser at gmx dot de Operating system: win 2k PHP version: 5.0.4 PHP Bug Type: GD related Bug description: create a 1 pixel true color image Description: ------------ using win2k apache with php wenn I create a 1 pixel true color image an reload the picture apache crashs Reproduce code: --------------- $im = imagecreatetruecolor(1, 10); $background_color = ImageColorAllocate($im, 50, 50, 50); Imagefill($im, 0, 0, $background_color); header("Content-type: image/png"); ImagePNG($im); ImageDestroy($im); Expected result: ---------------- @ the first time you run it nothing happend all is good wenn I reload the site the picture isn't created and the apache server crashs... wenn you change somthing at the script for example you add a empty line reload the picture it works normal. reload again doesn't work ... with: $im = imagecreatetruecolor(2, 10); or: $im = imagecreate(1,10); no error occurred Actual result: -------------- perhaps an apache error than sorry for writing -- Edit bug report at http://bugs.php.net/?id=33543&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33543&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33543&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33543&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33543&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33543&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33543&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33543&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33543&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33543&r=support Expected behavior: http://bugs.php.net/fix.php?id=33543&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33543&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33543&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33543&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33543&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33543&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33543&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33543&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33543&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33543&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33543&r=mysqlcfg

« previous php.bugs (#81281) next »