1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00
Files
archived-php-src/ext/gd/tests
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
..
2017-07-30 14:43:37 +02:00
2019-09-30 15:14:02 +02: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-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2016-07-15 21:05:59 +02:00
2019-09-30 15:14:02 +02:00
2019-05-11 03:22:19 +02:00
2019-11-07 21:31:47 +01:00
2016-09-11 18:29:27 +02:00
2019-09-30 15:14:02 +02: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-11-07 21:31:47 +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-11-07 21:31:47 +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-11-07 21:31:47 +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-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-09-30 15:14:02 +02:00
2019-09-30 15:14:02 +02: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-11-07 21:31:47 +01:00
2019-05-11 03:22:19 +02: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-01-06 12:30:44 -08:00
2019-11-07 21:31:47 +01:00
2019-09-30 15:14:02 +02: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-04-29 16:29:08 +02:00
2019-11-07 21:31:47 +01:00
2019-05-11 03:22:19 +02:00
2019-05-11 03:22:19 +02:00
2019-06-20 23:40:51 +02:00
2019-06-20 23:40:51 +02:00
2019-05-11 03:22:19 +02:00
2019-05-11 03:22:19 +02:00
2019-05-11 03:22:19 +02:00
2018-09-21 14:12:25 +02:00