php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21086 imagepolygon syntax description
Submitted: 2002-12-18 16:02 UTC Modified: 2003-01-19 19:40 UTC
From: hinz at iConnect dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.3 OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hinz at iConnect dot de
New email:
PHP Version: OS:

 

 [2002-12-18 16:02 UTC] hinz at iConnect dot de
IS:
int imagepolygon ( int im, array points, int num_points, int col) ... num_points is the total number of vertices. 
SHOULD BE:
int imagepolygon ( int im, array points, int num_points, int col) ... num_points is the total number of points, divided by 2.
If this is not considered a bug, it's pretty misleading at least.
HTH.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-18 19:30 UTC] pajoye@php.net
The word 'vertex' is correct, a polygon own a minimum amount of 3 verteces (which represent 3 carthesians coordonates, points).

A more 'userfriendly' word should be added, but this is correct.

pierre
 [2003-01-19 19:40 UTC] philip@php.net
Documentation has been modified:
http://cvs.php.net/cvs.php/phpdoc/en/reference/image/functions/imagepolygon.xml

Thank you for the report :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Sep 10 17:01:27 2024 UTC