Doc #71795 [Opn->Csd]: GmagickDraw::setstrokecolor() accepts string, not only GmagickPixel
| From: | cmb@php.net | Date: | Sun, 10 Jul 2016 13:09:40 +0000 |
| Subject: | Doc #71795 [Opn->Csd]: GmagickDraw::setstrokecolor() accepts string, not only GmagickPixel | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13707@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71795&edit=1
ID: 71795
Updated by: cmb@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: GmagickDraw::setstrokecolor() accepts string, not
only GmagickPixel
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2016-07-10 13:09:18] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339633
Log: Fix #71795: GmagickDraw::setstrokecolor() accepts string, not only GmagickPixel
------------------------------------------------------------------------
[2016-03-11 11:32:22] benjamin dot morel at gmail dot com
Note that the $color parameter description should therefore be changed to:
GmagickPixel or string representing the color for the stroke.
------------------------------------------------------------------------
[2016-03-11 11:31:00] benjamin dot morel at gmail dot com
Description:
------------
setstrokecolor() accepts a string, in addition to a GmagickPixel:
http://php.net/manual/en/gmagickdraw.setstrokecolor.php
Source:
https://github.com/vitoc/gmagick/blob/master/gmagickdraw_methods.c#L24-L46
Proof:
$d = new GmagickDraw();
$d->setstrokecolor('#ff8800');
echo $d->getstrokecolor()->getcolor(); // rgb(65535,34952,0)
Expected result:
----------------
public GmagickDraw GmagickDraw::setstrokecolor ( GmagickPixel|string $color )
Actual result:
--------------
public GmagickDraw GmagickDraw::setstrokecolor ( GmagickPixel $color )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71795&edit=1