From:
Operating system: WinXP - IIS -fastcgi
PHP version: 5.3.2
Package: GD related
Bug Type: Bug
Bug description:imagedashedline() - dashed line sometimes is not visible
Description:
------------
This bug first was realized by me in php 5.3.1. imagedashedline() function
is not work properly. Tipically horizontal and sharp-angled dashed lines is
not visible after running this function. Could someone make a patch or fix
this problem?
I know this problem has already been realized in earlier versions also, but
not corrected yet.
Thanks,
Gabor
Test script:
---------------
$im=imagecreate(1200,800);
$background_color=imagecolorallocate($im,40,40,40);
$color=imagecolorallocate($im,255,255,255);
imagedashedline($im,800,400,300,400,$color); // not visible, horizontal
line
imagedashedline($im,800,400,300,800,$color); // not visible
imagedashedline($im,800,400,400,800,$color); // not visible
imagedashedline($im,800,400,500,800,$color); // visible
imagedashedline($im,800,400,600,800,$color); // visible
imagedashedline($im,800,400,700,800,$color); // visible
imagedashedline($im,800,400,800,800,$color); // visible, vertical line
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
--
Edit bug report at http://bugs.php.net/bug.php?id=52070&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52070&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52070&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52070&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52070&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52070&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52070&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52070&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52070&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52070&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52070&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52070&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52070&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52070&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52070&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52070&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52070&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52070&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52070&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52070&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52070&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52070&r=mysqlcfg