Doc #71795 [Com]: GmagickDraw::setstrokecolor() accepts string, not only GmagickPixel

From: Date: Fri, 11 Mar 2016 11:32:22 +0000
Subject: Doc #71795 [Com]: GmagickDraw::setstrokecolor() accepts string, not only GmagickPixel
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13311@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 Comment by: benjamin dot morel at gmail dot com Reported by: benjamin dot morel at gmail dot com Summary: GmagickDraw::setstrokecolor() accepts string, not only GmagickPixel Status: Open Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Note that the $color parameter description should therefore be changed to: GmagickPixel or string representing the color for the stroke. Previous Comments: ------------------------------------------------------------------------ [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

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