Re: [PHP-DEV] imagepolygon() – number of points

2017-01-22 Thread Christoph M. Becker
On 21.01.2017 at 19:11, Rowan Collins wrote: > On 21/01/2017 17:42, Christoph M. Becker wrote: > >> In the long run (i.e. for PHP 8) I'd suggest to purge the $num_points >> parameter altogether, relying solely on the number of $points given. > > Since there's a 4th parameter ($color), what would

Re: [PHP-DEV] imagepolygon() – number of points

2017-01-21 Thread Rowan Collins
On 21/01/2017 17:42, Christoph M. Becker wrote: In the long run (i.e. for PHP 8) I'd suggest to purge the $num_points parameter altogether, relying solely on the number of $points given. Since there's a 4th parameter ($color), what would "purge" mean in this case? Reducing the number of parame

[PHP-DEV] imagepolygon() – number of points

2017-01-21 Thread Christoph M. Becker
Hi! This issue has been filed to our bugtracker years ago[1], but didn't deserve much attention, so I'm forwarding to the list. imagepolygon(), imagefilledpolygon() and imageopenpolygon() have the following signature: image*polygon(resource $im, array $points, int $num_points, int $col) Note