php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79116 imagecolorclosesthwb parameters copy/pasta
Submitted: 2020-01-14 20:51 UTC Modified: 2020-01-14 21:39 UTC
From: moo at cowdontwantnospam dot co Assigned:
Status: Not a bug Package: GD related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: moo at cowdontwantnospam dot co
New email:
PHP Version: OS:

 

 [2020-01-14 20:51 UTC] moo at cowdontwantnospam dot co
Description:
------------
---
From manual page: https://php.net/function.imagecolorclosesthwb
---

Based on the name and description, these parameters should be $hue, $white, $blackness or something similar, not RGB.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-14 21:39 UTC] requinix@php.net
-Status: Open +Status: Not a bug -Package: Documentation problem +Package: GD related
 [2020-01-14 21:39 UTC] requinix@php.net
Actually no, they are indeed supposed to be RGB.

cf. https://libgd.github.io/manuals/2.2.5/files/gd-c.html#gdImageColorClosestHWB
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 21:01:27 2025 UTC