1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00
Files
archived-php-src/ext
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-07 21:31:47 +01:00
2019-11-11 12:56:55 +01:00
2019-11-11 23:08:52 -08:00
2019-10-02 10:34:08 +02: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-08 15:15:48 +01:00
2019-11-02 10:19:56 +01:00
2019-11-07 21:31:47 +01:00
2019-11-01 15:26:52 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-08 15:15:48 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-11 18:08:54 +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-07 21:31:47 +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-07 21:31:47 +01:00
2019-11-08 15:15:48 +01:00
2019-10-17 23:40:30 +02:00