|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesgmagick-getcolor.patch (last revision 2012-01-21 06:54 UTC by fedora at famillecollet dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-22 19:39 UTC] rasmus@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: mkoppanen
[2012-06-02 05:52 UTC] remi@php.net
[2012-06-02 05:53 UTC] remi@php.net
-Status: Assigned
+Status: Closed
[2012-06-02 05:53 UTC] remi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ Working on another issue with getColor, I just notice : From code /* {{{ proto array GmagickPixel::getColor([boolean as_array = false, normalise_array = false]) Returns the color of the pixel */ But second option (normalise_array) is not accepted. Trivial attached path fix this minor issue Test script: --------------- php -r '$color = "rgb(255,255,255)"; $pixel = new GmagickPixel($color); echo $pixel->getColor(true, true);' Expected result: ---------------- array(3) { 'r' => double(1) 'g' => double(1) 'b' => double(1) } Actual result: -------------- Warning: GmagickPixel::getcolor() expects at most 1 parameter, 2 given in Command line code on line 1