#
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
|
#
34865f54 |
| 03-Sep-2019 |
Mark |
Warnings become errors for imagepolygon et al
|
#
87dbb322 |
| 03-Sep-2019 |
Mark |
Negative checks for gamma
|
#
af8ecb39 |
| 04-Sep-2019 |
Mark |
Warnings for image colour range check now throw exceptions
|
#
6c6c109e |
| 03-Sep-2019 |
Mark |
Warnings to errors for imagecreatefromgd2part We also delete tests which were duplicates of a completely unrelated test.
|
#
6a05e424 |
| 03-Sep-2019 |
Mark |
Warnings to Errors imagetruecolortopalette
|
#
fde52e8a |
| 03-Sep-2019 |
Mark |
Warnings to Errors imagecreate(truecolor) We also add a test helper which we will be using for other GD functions as well.
|
Revision tags: php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1 |
|
#
4281b137 |
| 12-Aug-2019 |
Christoph M. Becker |
Don't explicitly set return value on ZPP/ZFR failure Failing `zend_parse_parameters()` and `zend_fetch_resource()` throw as of PHP 8.0.0, so explicitly setting a return value is useless,
Don't explicitly set return value on ZPP/ZFR failure Failing `zend_parse_parameters()` and `zend_fetch_resource()` throw as of PHP 8.0.0, so explicitly setting a return value is useless, and also slightly confusing.
show more ...
|
#
429378d7 |
| 12-Aug-2019 |
Nikita Popov |
Remove some misleading RETURN_FALSE These functions throw, so they can't return false. This is just a subset...
|
#
9818f863 |
| 11-Aug-2019 |
Christoph M. Becker |
Fix parameter order `imagecopymerge()` and `imagecopymergegray()` expect the destination image first, not the other way round.
|
#
092571c1 |
| 11-Aug-2019 |
Christoph M. Becker |
Extend color component range checks We also check for alpha components to be within range, and we add yet missing range checks for other functions as well.
|
#
c90a2738 |
| 11-Aug-2019 |
Christoph M. Becker |
Add GD function stubs
|
Revision tags: php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1 |
|
#
d59aac58 |
| 18-Jul-2019 |
Nikita Popov |
Report errors from stream read and write operations The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Function
Report errors from stream read and write operations The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
show more ...
|
#
31d85b84 |
| 22-Jul-2019 |
Remi Collet |
cleanup gd build with system libgd - drop need to use libpng with system libgd - drop need to use libjpeg with system libgd - drop need to use libXpm with system libgd - drop need to use libfreetype
cleanup gd build with system libgd - drop need to use libpng with system libgd - drop need to use libjpeg with system libgd - drop need to use libXpm with system libgd - drop need to use libfreetype with system libgd - improve configure comments
show more ...
|
#
d3d3404d |
| 21-Jul-2019 |
Christoph M. Becker |
Drop superfluous ENABLE_GD_TTF If we `HAVE_LIBFREETYPE`, we define `ENABLE_GD_TTF` if it is not defined. Therefore we can check for `HAVE_LIBFREETYPE` in the first place.
|
#
290e520c |
| 16-Jul-2019 |
Nikita Popov |
Use ZEND_HASH_FOREACH APIs in a few more places
|
Revision tags: php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2 |
|
#
eec5d2a2 |
| 21-Jun-2019 |
Christoph M. Becker |
Properly shut down font cache mutex Since the font cache mutex in set up in MINIT, we have to shut it down in MSHUTDOWN.
|
#
81fd1135 |
| 20-Jun-2019 |
Christoph M. Becker |
Support TGA reading We add PHP bindings for libgd's features to read TGA files, which are available as of libgd 2.1.0. As PHP's bundled libgd doesn't yet include the respective
Support TGA reading We add PHP bindings for libgd's features to read TGA files, which are available as of libgd 2.1.0. As PHP's bundled libgd doesn't yet include the respective features of the external libgd, we add these. Since TGA has no easily recognizable file signature, we don't add TGA support for imagecreatefromstring() or getimagesize() and friends.
show more ...
|
Revision tags: php-7.3.7RC3 |
|
#
4488475a |
| 20-Jun-2019 |
Nikita Popov |
imagecolorallocate(): Check that RGB components are in-range Instead of letting them bleed over into other components.
|
#
88b60376 |
| 19-Jun-2019 |
Nikita Popov |
imageloadfont: Perform overflow check before calculation Instead of afterwards...
|
Revision tags: php-7.3.7RC2, php-7.2.20RC2 |
|
#
3c5bb065 |
| 13-Jun-2019 |
Christoph M. Becker |
Add BMP support to PHP info
|