| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
If the string is too short, we should treat this the same way as
an unrecognized image type. This function should be usable to
determine whether something is a valid image without doing any
checks beforehand.
|
|
|
|
| |
Just like all the other former resources... we missed this case.
|
|
|
|
| |
The variable was not actually passed to zpp...
|
|
|
|
| |
Closes GH-6308.
|
|
|
|
|
|
| |
Intended to find issues in opaque object destructors.
Closes GH-6251.
|
|
|
|
|
|
| |
We previously couldn't increase the error level here because it
was coupled to comparison handling. This is no longer the case
in PHP 8.
|
|
|
|
| |
Closes GH-6173
|
|
|
|
|
| |
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently we treat paths with null bytes as a TypeError, which is
incorrect, and rather inconsistent, as we treat empty paths as
ValueError. We do this because the error is generated by zpp and
it's easier to always throw TypeError there.
This changes the zpp implementation to throw a TypeError only if
the type is actually wrong and throw ValueError for null bytes.
The error message is also split accordingly, to be more precise.
Closes GH-6094.
|
|
|
|
| |
Closes GH-6075
|
|\
| |
| |
| |
| | |
* PHP-7.4:
Fix potential integer overflow detected by oss-fuzz
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.3:
Fix potential integer overflow detected by oss-fuzz
|
| | |
| | |
| | |
| | |
| | |
| | | |
We port the respective fix from upstream[1].
[1] <https://github.com/libgd/libgd/commit/9ed642764cf0b4585d135eb738812a43265cb2d3>
|
| | |
| | |
| | |
| | | |
Closes GH-6023
|
| | |
| | |
| | |
| | | |
Closes GH-5955
|
| | |
| | |
| | |
| | | |
Closes GH-5958
|
| | | |
|
| | |
| | |
| | |
| | | |
Related to GH-5627
|
| | |
| | |
| | |
| | | |
Closes GH-5598
|
| | |
| | |
| | |
| | | |
Closes GH-5844
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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()`.
|
| | |
| | |
| | |
| | | |
Closes GH-5590
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes GH-5758
|
| | |
| | |
| | |
| | | |
Closes GH-5779
|
| | |
| | |
| | |
| | | |
Closes GH-5759
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The hash is used to check whether the arginfo file needs to be
regenerated. PHP-Parser will only be downloaded if this is actually
necessary.
This ensures that release artifacts will never try to regenerate
stubs and thus fetch PHP-Parser, as long as you do not modify any
files.
Closes GH-5739.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of returning long and then casting to void.
This fixes a build warning on Ubuntu 20.04.
Closes GH-5742.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix #79676: imagescale adds black border with IMG_BICUBIC
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix #79676: imagescale adds black border with IMG_BICUBIC
|
| | |
| | |
| | |
| | |
| | | |
We have to loop over all image pixels to avoid the black border. This
is also done in external libgd in `_gdScaleOneAxis` and `_gdScalePass`.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix #79615: Wrong GIF header written in GD GIFEncode
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix #79615: Wrong GIF header written in GD GIFEncode
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The color resolution is expected in bits 4-6 of the packed fields byte
of the logical screen descriptor (byte 10 of the GIF data stream),
according to the specification[1], section 18.
[1] <https://www.w3.org/Graphics/GIF/spec-gif89a.txt>
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes GH-5377
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal functions.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes GH-5340
|
| | |
| | |
| | |
| | | |
Closes GH-5351
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes GH-5327
|
| | |
| | |
| | |
| | | |
Closes GH-5278
|
| | |
| | |
| | |
| | | |
Closes GH-5211
|
| | |
| | |
| | |
| | | |
Closes GH-5092
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As seen in the gdImageRotateBicubicFixed() function the same setup
occurs but it uses signed integers, therefore we use also use
signed integers in gdImageRotateBilinear()
Moreover, these two functions have been removed upstream in
https://github.com/libgd/libgd/commit/bd6d2e101f6f1df106d1cd2e2dc8058a5538109b
therefore we should also mimic upstream and remove them...
Thanks to @cmb69 for pointing it out.
|