php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33543 create a 1 pixel true color image
Submitted: 2005-07-02 02:45 UTC Modified: 2005-07-10 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: m dot stoesser at gmx dot de Assigned:
Status: No Feedback Package: GD related
PHP Version: 5.0.4 OS: win 2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: m dot stoesser at gmx dot de
New email:
PHP Version: OS:

 

 [2005-07-02 02:45 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-02 11:09 UTC] tony2001@php.net
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


 [2005-07-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 22:01:28 2024 UTC