Doc #71797 [Opn->Csd]: GmagickDraw::setfillcolor() accepts GmagickPixel, not only string

From: Date: Sun, 10 Jul 2016 13:12:20 +0000
Subject: Doc #71797 [Opn->Csd]: GmagickDraw::setfillcolor() accepts GmagickPixel, not only string
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13708@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71797&edit=1 ID: 71797 Updated by: cmb@php.net Reported by: benjamin dot morel at gmail dot com Summary: GmagickDraw::setfillcolor() accepts GmagickPixel, not only string -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:12:01] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=339634 Log: Fix #71797: GmagickDraw::setfillcolor() accepts GmagickPixel, not only string ------------------------------------------------------------------------ [2016-03-11 11:37:07] benjamin dot morel at gmail dot com Note that the $color parameter description should therefore be changed to: GmagickPixel or string indicating color to use for filling. ------------------------------------------------------------------------ [2016-03-11 11:36:30] benjamin dot morel at gmail dot com Description: ------------ setfillcolor() accepts a GmagickPixel, in addition to a string: http://php.net/manual/en/gmagickdraw.setfillcolor.php Source: https://github.com/vitoc/gmagick/blob/master/gmagickdraw_methods.c#L637-L656 Proof: $d = new GmagickDraw(); $d->setfillcolor(new GmagickPixel('#ff8800')); echo $d->getfillcolor()->getcolor(); // rgb(65535,34952,0) Expected result: ---------------- public GmagickDraw GmagickDraw::setfillcolor ( GmagickPixel|string $color ) Actual result: -------------- public GmagickDraw GmagickDraw::setfillcolor ( string $color ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71797&edit=1

« previous php.doc.bugs (#13708) next »