| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes GH-6784
|
|\
| |
| |
| |
| | |
* PHP-8.0:
imagecolortransparent() cannot return null
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-8.0:
Return bool from imageinterlace()
|
| |
| |
| |
| |
| |
| |
| | |
The function accepts a bool since PHP 8.0, so it should also return
a bool to keep things consistent.
Furthermore a null return from this functions is not possible.
|
|\ \
| |/
| |
| |
| | |
* PHP-8.0:
Mark resource-like objects as non-comparable
|
| |
| |
| |
| |
| |
| |
| | |
As these hold on to some internal resource, there can't be two
"equal" objects with different identity. Make sure the lack of
public properties doesn't result in these being treated as always
equal.
|
| |
| |
| |
| | |
Related to GH-6701
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.
This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)
RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
Closes GH-6475.
|
|\ \
| |/
| |
| |
| |
| | |
* PHP-8.0:
Properly check imagegd() signature
Make imagegd $file parameter nullable
|
| |
| |
| |
| |
| | |
Unlike imagegd2(), this function only accepts two parameters,
so we should be checking for that.
|
| |
| |
| |
| |
| |
| | |
It is explicitly documented to be nullable, and this matches other
functions like imagepng. It is also documented to accept a stream,
which it currently does not...
|
| |
| |
| |
| |
| |
| | |
enabled
Closes GH-6675
|
| |
| |
| |
| | |
Closes GH-6669
|
| |
| |
| |
| |
| |
| |
| | |
We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.
Of course, zend_bool is retained as an alias.
|
|\ \
| |/
| |
| |
| | |
* PHP-8.0:
Don't throw from imagecreatefromstring() with too short string
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Use Z_PARAM_OBJ_OF_TYPE_OR_LONG to get standard behavior.
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-8.0:
Don't allow properties on GdImage
|
| |
| |
| |
| | |
Just like all the other former resources... we missed this case.
|
| | |
|
|/
|
|
|
|
|
|
| |
This macro is defined to zero as of PHP 5.0.0, and as the comment
indicates, is no longer relevant. Thus, we remove the definition and
all usages from the core and bundled extensions.
Closes GH-6351.
|
|
|
|
| |
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>
|