From:             sg01_net at hotmail dot com
Operating system: Windows XP
PHP version:      4CVS-2004-07-01 (stable)
PHP Bug Type:     GD related
Bug description:  Crash when filling an image with a transparent color

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 bug report at http://bugs.php.net/?id=28984&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28984&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28984&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28984&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28984&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28984&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28984&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28984&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28984&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28984&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28984&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28984&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28984&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28984&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28984&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28984&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28984&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28984&r=float

Reply via email to