#33543 [Opn->Fbk]: create a 1 pixel true color image
| From: | tony2001@php.net | Date: | Sat, 02 Jul 2005 09:09:19 +0000 |
| Subject: | #33543 [Opn->Fbk]: create a 1 pixel true color image | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81288@lists.php.net to get a copy of this message | ||
ID: 33543
Updated by: tony2001@php.net
Reported By: m dot stoesser at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: win 2k
PHP Version: 5.0.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-07-02 02:45:08] m dot stoesser at gmx dot de
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 this bug report at http://bugs.php.net/?id=33543&edit=1