From: swolf at x-project dot net
Operating system: Gentoo ~X86
PHP version: 4CVS-2005-11-06 (snap)
PHP Bug Type: GD related
Bug description: imageDashedline horizontal don't work
Description:
------------
I use a selfcompiled version from PHP Version 5.1.0RC5-dev
Only vertical lines you can create, the horizontal lines are not visible
Reproduce code:
---------------
<?
$pic = ImageCreate (150, 50);
$bg = ImageColoralLocate($pic, 230,230,230);
$dl = ImageColoralLocate($pic, 50, 50, 50);
ImageDashedLine($pic, 1, 36, 149, 36, $dl); // don't work
imageDashedline($pic, 37, 2, 37, 49, $dl); // works
header('Content-Type: image/jpeg');
imagegif($pic);
?>
Expected result:
----------------
You can only show the vertical lines!!!
Actual result:
--------------
PHP don't crash!!
--
Edit bug report at http://bugs.php.net/?id=35128&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35128&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=35128&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=35128&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35128&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35128&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35128&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35128&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35128&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35128&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35128&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35128&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35128&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35128&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35128&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35128&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35128&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35128&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35128&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35128&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35128&r=mysqlcfg