#
340e2ead |
| 11-Jul-2020 |
Christoph M. Becker |
Export php_gd_libgdimageptr_from_zval_p() Some extension may need to retrieve the `gdImagePtr` from an `GdImage` object; thus, we export the respective function. To not being forced
Export php_gd_libgdimageptr_from_zval_p() Some extension may need to retrieve the `gdImagePtr` from an `GdImage` object; thus, we export the respective function. To not being forced to include gd.h in php_gd.h, we use the opaque `struct gdImageStruct *` as return type. We also rename php_gd2.dll to php_gd.dll, since there's not really much point in giving the DLL a version number, since there is no php_gd.dll for years (if there ever has been). Renaming, on the other hand, matches the name on other systems (gd.so), and allows to actually use `ADD_EXTENSION_DEP()`.
show more ...
|
#
d30cd7d7 |
| 26-May-2020 |
Máté Kocsis |
Review the usage of apostrophes in error messages Closes GH-5590
|
#
2b5de6f8 |
| 01-Jul-2020 |
Max Semenik |
Remove proto comments from C files Closes GH-5758
|
#
92c4b065 |
| 16-Jun-2020 |
Christoph M. Becker |
Use ZEND_UNREACHABLE() instead of ZEND_ASSERT(0) Instead of marking unreachable code with `ZEND_ASSERT(0)`, we introduce `ZEND_UNREACHABLE()`, so that MSVC which does not consider `asser
Use ZEND_UNREACHABLE() instead of ZEND_ASSERT(0) Instead of marking unreachable code with `ZEND_ASSERT(0)`, we introduce `ZEND_UNREACHABLE()`, so that MSVC which does not consider `assert(0)` to mark unreachable code does no longer trigger C4715[1] warnings in debug builds. This may be useful for other compilers as well. [1] <https://docs.microsoft.com/de-de/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4715?view=vs-2019>
show more ...
|
#
2f0dcf2a |
| 20-May-2020 |
George Peter Banyard |
Fix [-Wundef] warning in GD extension
|
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>.
|