#28984 [Opn->Csd]: Crash when filling an image with a transparent color
| From: | pajoye@php.net | Date: | Sat, 03 Jul 2004 15:33:24 +0000 |
| Subject: | #28984 [Opn->Csd]: Crash when filling an image with a transparent color | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61641@lists.php.net to get a copy of this message | ||
ID: 28984
Updated by: pajoye@php.net
Reported By: sg01_net at hotmail dot com
-Status: Open
+Status: Closed
Bug Type: GD related
Operating System: Windows XP
PHP Version: 4CVS-2004-07-01 (stable)
-Assigned To:
+Assigned To: pajoye
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-07-01 16:34:19] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28984&edit=1