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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sg01_net at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 12:01:29 2024 UTC