php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28984 Crash when filling an image with a transparent color
Submitted: 2004-07-01 16:34 UTC Modified: 2004-07-03 17:33 UTC
From: sg01_net at hotmail dot com Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 4CVS-2004-07-01 (stable) OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 - 10 = ?
Subscribe to this entry?

 
 [2004-07-01 16:34 UTC] sg01_net at hotmail dot com
Description:
------------
Using GD2, and the code in the code window, PHP will crash with a "windows xp" crash-error. I have tried upgrading to the latest stable CVS, but it did not help.

I tried using command line (C:\PHP>php -f C:\PHP\x.php.txt) but it did the same.

(in php.ini extension=php_gd2.dll is enabled)

Thanks in advance for helping,

SG_01 Lunarchild

Reproduce code:
---------------
<?PHP
  $IMG = imagecreatetruecolor(100,100);
  $Alpha = imagecolorallocatealpha($IMG,0,0,255,127);
  imagefill($IMG,2,2,$Alpha);
  imagedestroy($IMG);
?>

Expected result:
----------------
Fill image $IMG with a transparent color.

Actual result:
--------------
Windows crash report (PHP Script Interperter has generated an error...) with the following signature:
AppName: php.exe AppVer: 4.3.8.8 ModName: php_gd2.dll
ModVer: 0.0.0.0	Offset: 0000e5a4

Error message when starting to debug:

Unhandled exception at 0x00b3e5a4 in php.exe: 0xC0000005: Access violation writing location 0x00a11000.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-03 17:33 UTC] pajoye@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 17:05:44 2022 UTC