Revision tags: php-7.4.6, php-7.2.31 |
|
#
8ddaf13e |
| 29-Apr-2020 |
Alex Dowad |
Code tweaks: Remove unneeded semicolons
|
Revision tags: php-7.4.6RC1, php-7.3.18RC1 |
|
#
ed179c2e |
| 15-Apr-2020 |
Remi Collet |
workaround typo in system libgd 2.3.0
|
Revision tags: php-7.2.30, php-7.4.5, php-7.3.17 |
|
#
1f48feeb |
| 13-Apr-2020 |
Máté Kocsis |
Improve some TypeError and ValueError messages Closes GH-5377
|
#
50765075 |
| 01-Apr-2020 |
Máté Kocsis |
Improve some ValueError messages Closes GH-5340
|
#
5322de1b |
| 04-Apr-2020 |
Máté Kocsis |
Generate functions entries from stubs for another set of extensions Closes GH-5351
|
Revision tags: php-7.4.5RC1, php-7.3.17RC1 |
|
#
01b266aa |
| 18-Mar-2020 |
Máté Kocsis |
Improve error messages of various extensions Closes GH-5278
|
Revision tags: php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1, php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1, php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14, php-7.3.14RC1, php-7.4.2RC1 |
|
#
03bd4333 |
| 06-Jan-2020 |
Christoph M. Becker |
Add imagegetinterpolation() While `imagesetinterpolation()` is available as of PHP 5.5.0, there is no according getter function, so users would have to track the current interpolatio
Add imagegetinterpolation() While `imagesetinterpolation()` is available as of PHP 5.5.0, there is no according getter function, so users would have to track the current interpolation method manually. To remedy this, we introduce `imagegetinterpolation()` as thin wrapper for `gdImageGetInterpolationMethod()` (which has been introduced with libgd 2.1.1), and use `im->interpolation_id` as fallback for older libgd. Since our bundled libgd does not yet have this function, we add it. We also simplify the recently introduced bug79068.phpt, where it is sufficient to check that the interpolation method has not been changed.
show more ...
|
#
d83f89f0 |
| 06-Jan-2020 |
Christoph M. Becker |
Remove useless else branch Passing `NULL` as `gdTransformAffineGetImage()`'s `src_area` is fine, but in this case there's no need to calculate the `rect`, and since `pRect` has alrea
Remove useless else branch Passing `NULL` as `gdTransformAffineGetImage()`'s `src_area` is fine, but in this case there's no need to calculate the `rect`, and since `pRect` has already been initialized to `NULL`, we can remove the whole else branch.
show more ...
|
#
aadd3aae |
| 03-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() in various places
|
#
9099dbd9 |
| 01-Jan-2020 |
Máté Kocsis |
Use RETURN_THROWS() after zend_type_error()
|
#
12ce73a5 |
| 31-Dec-2019 |
Máté Kocsis |
Use RETURN_THROWS() after zend_value_error()
|
#
d9ac1ca8 |
| 30-Dec-2019 |
Máté Kocsis |
Use ZEND_THROWS() during ZPP in the GD, gettext, GMP, and hash extensions
|
Revision tags: php-7.4.1, php-7.2.26, php-7.3.13, php-7.4.1RC1 |
|
#
92c23e1f |
| 09-Dec-2019 |
Dmitry Stogov |
Call zend_unregister_ini_entries() when unload extension loaded through dl() without MSHUTDOWN callback. Extensions with MSHUTDOWN should use UNREGISTER_INI_ENTRIES().
|
Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12 |
|
#
2de79f08 |
| 14-Nov-2019 |
Christoph M. Becker |
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 f
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`.
show more ...
|
Revision tags: php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1 |
|
#
7d96dcac |
| 02-Nov-2019 |
Christoph M. Becker |
Fix #55005: imagepolygon num_points requirement We actually have to check `$num_points` instead of `2*count($points)`, because the latter may be greater than the former, but not all elem
Fix #55005: imagepolygon num_points requirement We actually have to check `$num_points` instead of `2*count($points)`, because the latter may be greater than the former, but not all elements of `$points` are guaranteed to be used. This allowed to pass arrays with excess elements to draw polygons with less than three vertices. While the current implementation of `gdImagePolygon()` and friends would allow us to draw monogons and digons, we don't allow that anymore, because the respective drawing primitives work slightly different (e.g. drawing lines support anti-aliasing, but drawing general polygons does not). To minimize the BC break, we do not fix this longstanding issue for PHP 7, but target PHP 8 only.
show more ...
|
#
88bab001 |
| 01-Nov-2019 |
Christoph M. Becker |
Remove unused code These are left-overs from image2wbmp(), which has already been removed.
|
Revision tags: php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3 |
|
#
a601d519 |
| 30-Sep-2019 |
Christoph M. Becker |
Just return after throwing a ValueError
|
#
8aad466c |
| 27-Sep-2019 |
Mark |
Convert GD Resources to objects
|
#
5d6e923d |
| 24-Sep-2019 |
Gabriel Caruso |
Remove mention of PHP major version in Copyright headers Closes GH-4732.
|
Revision tags: php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1 |
|
#
4f407432 |
| 10-Sep-2019 |
Christoph M. Becker |
Prefer ValueError over Error in GD Cf. <https://github.com/php/php-src/pull/4682>.
|
#
a4367963 |
| 04-Sep-2019 |
Peter Cowburn |
raise ValueError from imagecreate/imagecreatetruecolor Raise a ValueError instead of a plain Error when calling imagecreate() or imagecreatetruecolor() with too big or small values for t
raise ValueError from imagecreate/imagecreatetruecolor Raise a ValueError instead of a plain Error when calling imagecreate() or imagecreatetruecolor() with too big or small values for the width or height arguments.
show more ...
|
#
5af83610 |
| 03-Sep-2019 |
Mark |
Warnings to Errors: imagesetstyle
|
#
4a1f0eb9 |
| 03-Sep-2019 |
Mark |
Warnings to errors in imageaffinematrix*()
|
#
06a3dd53 |
| 03-Sep-2019 |
Mark |
Warnings to errors in imagecrop(auto)
|
#
d1f9ab11 |
| 03-Sep-2019 |
Mark |
Warnings to errors imageconvolution
|