Christoph M. Becker
2de79f0855
Make the $num_points parameter of php_imagepolygon optional
...
That parameter is mostly useless in practise, and likely has been
directly ported from the underlying `gdImagePolygon()` and friends,
which require that parameter since the number of elements of the point
array would otherwise be unknown. Typical usages of `imagepolygon()`,
`imageopenpolygon()` and `imagefilledpolygon()` pass `count($points)/2`
or hard-code this value as literal. Since explicitly specifying this
parameter is annoying and error-prone, we offer the possibility to omit
it, in which case the `$points` array must have an even number of
elements, and the number of points is calculated as `count($points)/2`.
2019-11-15 09:41:10 +01:00
..
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-07 21:31:47 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-09 21:29:42 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 12:56:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-15 09:41:10 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 15:40:59 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 23:08:52 -08:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-10-02 10:34:08 +02:00
2019-11-11 14:54:55 +01:00
2019-11-11 15:57:42 +01:00
2019-11-04 21:36:36 +01:00
2019-11-07 21:31:47 +01:00
2019-11-11 14:54:55 +01:00
2019-11-12 13:49:55 +03:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-08 15:15:48 +01:00
2019-09-25 14:51:43 +02:00
2019-11-02 10:19:56 +01:00
2019-11-07 21:31:47 +01:00
2019-11-01 10:36:55 +01:00
2019-09-25 14:51:43 +02:00
2019-11-01 15:26:52 +01:00
2019-10-07 10:02:18 +02:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-08 15:15:48 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-07 21:31:47 +01:00
2019-06-03 09:18:22 +02:00
2019-11-11 14:54:55 +01:00
2019-11-07 21:31:47 +01:00
2019-11-11 18:08:54 +01:00
2019-11-11 14:54:55 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-13 21:15:59 +01:00
2019-11-11 14:54:55 +01:00
2019-10-30 16:05:20 +01:00
2019-11-07 21:31:47 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-10-06 13:47:21 +02:00
2019-11-11 14:54:55 +01:00
2019-11-07 21:31:47 +01:00
2019-11-08 15:15:48 +01:00
2019-11-11 14:54:55 +01:00
2019-11-11 14:54:55 +01:00
2019-10-17 23:40:30 +02:00