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
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: 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