Christoph M. Becker
76179cdf3d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add missing skip keyword in tests
Update NEWS for 7.4.0RC4
Update NEWS for PHP 7.4.0RC3
2019-10-01 11:19:43 +02:00
Christoph M. Becker
73f29a5c5e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing skip keyword in tests
2019-10-01 11:17:53 +02:00
Christoph M. Becker
2fc5d00afa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing skip keyword in tests
2019-10-01 11:15:12 +02:00
Fabien Villepinte
209e37db7d
Add missing skip keyword in tests
2019-10-01 11:13:36 +02:00
Nikita Popov
235983dfde
Merge branch 'PHP-7.4'
2019-09-30 17:52:39 +02:00
Fabien Villepinte
0aa3acc6c4
Fix borked SKIPIFs
2019-09-30 17:51:41 +02:00
Christoph M. Becker
a601d519aa
Just return after throwing a ValueError
2019-09-30 16:40:56 +02:00
Mark
8aad466c42
Convert GD Resources to objects
2019-09-30 15:14:02 +02:00
Gabriel Caruso
5d6e923d46
Remove mention of PHP major version in Copyright headers
...
Closes GH-4732.
2019-09-25 14:51:43 +02:00
Christoph M. Becker
4f4074328c
Prefer ValueError over Error in GD
...
Cf. <https://github.com/php/php-src/pull/4682 >.
2019-09-10 12:37:42 +02:00
Peter Cowburn
a43679632b
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.
2019-09-09 21:06:00 +01:00
Mark
5af8361060
Warnings to Errors: imagesetstyle
2019-09-04 15:21:59 +02:00
Mark
4a1f0eb9d3
Warnings to errors in imageaffinematrix*()
2019-09-04 15:18:07 +02:00
Mark
06a3dd536d
Warnings to errors in imagecrop(auto)
2019-09-04 15:12:04 +02:00
Mark
d1f9ab11b3
Warnings to errors imageconvolution
2019-09-04 12:42:17 +02:00
Mark
34865f54e7
Warnings become errors for imagepolygon et al
2019-09-04 12:35:48 +02:00
Mark
87dbb32246
Negative checks for gamma
2019-09-04 12:31:01 +02:00
Mark
af8ecb39ae
Warnings for image colour range check now throw exceptions
2019-09-04 12:27:08 +02:00
Mark
6c6c109e24
Warnings to errors for imagecreatefromgd2part
...
We also delete tests which were duplicates of a completely unrelated
test.
2019-09-04 12:22:27 +02:00
Mark
6a05e42459
Warnings to Errors imagetruecolortopalette
2019-09-04 12:14:34 +02:00
Mark
fde52e8a2c
Warnings to Errors imagecreate(truecolor)
...
We also add a test helper which we will be using for other GD functions
as well.
2019-09-04 12:09:07 +02:00
Christoph M. Becker
4281b1378e
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.
2019-08-12 14:42:26 +02:00
Nikita Popov
429378d78d
Remove some misleading RETURN_FALSE
...
These functions throw, so they can't return false.
This is just a subset...
2019-08-12 10:05:36 +02:00
Christoph M. Becker
0c5b75b063
Fix arginfo
...
The second parameter of `imagexbm()` is nullable.
2019-08-11 16:41:31 +02:00
Christoph M. Becker
f30501b172
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix parameter order
2019-08-11 16:18:44 +02:00
Christoph M. Becker
9818f863c3
Fix parameter order
...
`imagecopymerge()` and `imagecopymergegray()` expect the destination
image first, not the other way round.
2019-08-11 16:16:39 +02:00
Christoph M. Becker
f273204011
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Extend color component range checks
2019-08-11 15:23:23 +02:00
Christoph M. Becker
092571c1cb
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.
2019-08-11 15:21:05 +02:00
Christoph M. Becker
4067519541
Fix arginfo
2019-08-11 13:54:52 +02:00
Christoph M. Becker
c90a27387e
Add GD function stubs
2019-08-11 13:17:24 +02:00
Nikita Popov
a1e2c8870e
Merge branch 'PHP-7.4'
2019-07-22 17:26:01 +02:00
Nikita Popov
d59aac58b3
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.
2019-07-22 17:17:28 +02:00
Remi Collet
92d6720dcf
Merge branch 'PHP-7.4'
...
* PHP-7.4:
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
2019-07-22 16:14:36 +02:00
Remi Collet
31d85b8417
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
2019-07-22 16:14:19 +02:00
Christoph M. Becker
ea2b8122e6
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Remove superfluous HAVE_GD_BUNDLED checks
2019-07-22 16:00:18 +02:00
Christoph M. Becker
f8202b5513
Remove superfluous HAVE_GD_BUNDLED checks
...
If we're compiling the bundled libgd, `HAVE_GD_BUNDLED` is set, so
there is no need to check for this macro again.
2019-07-22 15:59:44 +02:00
Christoph M. Becker
ebe91a0066
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Drop superfluous ENABLE_GD_TTF
2019-07-22 12:01:58 +02:00
Christoph M. Becker
d3d3404db7
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.
2019-07-22 12:01:24 +02:00
Remi Collet
2db5dfd6fc
Merge branch 'PHP-7.4'
...
* PHP-7.4:
improve temporary fix for system libgd
2019-07-22 09:12:48 +02:00
Remi Collet
fff6b18657
improve temporary fix for system libgd
...
- PHP_GD_PNG needed to set include path for png.h
- PHP_GD_JPEG needed to set include path for jpeglib.h
2019-07-22 09:11:32 +02:00
Remi Collet
eba877de77
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #78314 (missing freetype support/functions with external gd)
2019-07-20 07:57:26 +02:00
Remi Collet
a85e4d5336
Fixed bug #78314 (missing freetype support/functions with external gd)
2019-07-20 07:57:13 +02:00
Nikita Popov
e36118a5c5
Merge branch 'PHP-7.4'
2019-07-16 12:20:21 +02:00
Nikita Popov
290e520c03
Use ZEND_HASH_FOREACH APIs in a few more places
2019-07-16 12:20:16 +02:00
Peter Kokot
cbefc538fa
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Use e.g. instead of less common f.e. [ci skip]
2019-07-09 17:53:57 +02:00
Peter Kokot
48abed7fd8
Use e.g. instead of less common f.e. [ci skip]
2019-07-09 17:53:46 +02:00
Peter Kokot
1f9906ab5b
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Update changelogs [ci skip]
Remove HAVE_ERRNO_H from libgd
2019-06-28 20:14:29 +02:00
Peter Kokot
a014e50513
Remove HAVE_ERRNO_H from libgd
...
The check for errno.h has been removed via
50b9ef8d94
Upstream libgd library is also patched via
1e7f93922f
2019-06-28 20:02:11 +02:00
Christoph M. Becker
611c57eaf7
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Properly shut down font cache mutex
2019-06-21 16:01:28 +02:00
Christoph M. Becker
eec5d2a25f
Properly shut down font cache mutex
...
Since the font cache mutex in set up in MINIT, we have to shut it down
in MSHUTDOWN.
2019-06-21 16:00:47 +02:00