History log of /PHP-8.1/NEWS (Results 276 – 300 of 14214)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 243865ae 07-Feb-2023 Max Kellermann

ext/mbstring: fix new_value length check

Commit 8bbd0952e5bba88 added a check rejecting empty strings; in the
merge commiot 379d9a1cfc6462 however it was changed to a NULL check,
one

ext/mbstring: fix new_value length check

Commit 8bbd0952e5bba88 added a check rejecting empty strings; in the
merge commiot 379d9a1cfc6462 however it was changed to a NULL check,
one that did not make sense because ZSTR_VAL() is guaranteed to never
be NULL; the length check was accidently removed by that merge commit.

This bug was found by GCC's -Waddress warning:

ext/mbstring/mbstring.c:748:27: warning: the comparison will always evaluate as ‘true’ for the address of ‘val’ will never be NULL [-Waddress]
748 | if (!new_value || !ZSTR_VAL(new_value)) {
| ^

Closes GH-10532

Signed-off-by: George Peter Banyard <girgias@php.net>

show more ...


# ae164716 19-Feb-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10623: ReflectionFunction::getClosureUsedVariables() returns empty array in presence of variadic arguments

The code was missing the handling for the RECV_VARIADIC instruction.
Add

Fix GH-10623: ReflectionFunction::getClosureUsedVariables() returns empty array in presence of variadic arguments

The code was missing the handling for the RECV_VARIADIC instruction.
Additional regression test for GH-10623

Co-authored-by: Fabio Ivona <fabio.ivona@defstudio.it>

show more ...


# a9e4f518 17-Feb-2023 Jakub Zelenka

Update NEWS with scanner and parser build fixes


# 7b68ff46 16-Feb-2023 Ilija Tovilo

Revert "Fix GH-10168: heap-buffer-overflow at zval_undefined_cv"

This reverts commit 71ddede5655fe654002ae18af6a18e033f717287.


# e35e6dc3 14-Feb-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[ci skip] NEWS (#10586)


# 937b1e38 14-Feb-2023 Jakub Zelenka

Fix missing colon in NEWS


# eef29d43 14-Feb-2023 Jakub Zelenka

Change NEWS for GHSA-54hq-v5wp-fqgv as it is for all SAPIs


# caaaf759 14-Feb-2023 Jakub Zelenka

Fix incorrect character in NEWS


# 054c7b09 14-Feb-2023 Jakub Zelenka

Update NEWS


# 28d68f50 13-Feb-2023 Ben Ramsey

PHP-8.1 is now for PHP 8.1.17-dev


# d721dcc2 10-Feb-2023 Arnaud Le Blanc

Fix colletion of unfinished function call in fibers

Fixes GH-10496.

Co-authored-by: Bob Weinand <bobwei9@hotmail.com>


# b5ccaaf6 13-Feb-2023 Stanislav Malyshev

Update NEWS


# af2ddc64 13-Feb-2023 Stanislav Malyshev

Update NEWS


# 704aadd0 08-Feb-2023 George Peter Banyard

Fix memory leaks in ext-tidy

We must not instantiate the object prior checking error conditions
Moreover, we need to release the HUGE amount of memory for files which are over 4GB when t

Fix memory leaks in ext-tidy

We must not instantiate the object prior checking error conditions
Moreover, we need to release the HUGE amount of memory for files which are over 4GB when throwing a ValueError

Closes GH-10545

show more ...


# 8c8a38a7 07-Feb-2023 Max Kellermann

ext/curl: suppress -Wdeprecated-declarations

Closes GH-10531.


# 71ddede5 06-Feb-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10168: heap-buffer-overflow at zval_undefined_cv

The problem is that we're using the variable_ptr in the opcode handler
*after* it has already been destroyed. The solution is to c

Fix GH-10168: heap-buffer-overflow at zval_undefined_cv

The problem is that we're using the variable_ptr in the opcode handler
*after* it has already been destroyed. The solution is to create a
specialised version of zend_assign_to_variable which takes in two
destination zval pointers.

Closes GH-10524

show more ...


# ba282f1b 07-Feb-2023 Ben Ramsey

Update NEWS


# 49551d7c 21-Jan-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Sync boost/context assembly files for fibers

Fixes GH-10398

The stack was misaligned upon entering the trampoline function [1], this
causes a CPU trap when the SSE instruction i

Sync boost/context assembly files for fibers

Fixes GH-10398

The stack was misaligned upon entering the trampoline function [1], this
causes a CPU trap when the SSE instruction is executed to copy data from
the stack. This was fixed upstream [2]. This commit syncs all upstream
changes from the boost/context assembly files to our copy.

[1] https://github.com/php/php-src/pull/10407#issuecomment-1404180877
[2] https://github.com/boostorg/context/pull/219

Closes GH-10407.

show more ...


# 5b13e830 20-Jan-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10385: FPM successful config test early exit

This introduces an enum `fpm_init_return_status` to propagate the status
up to fpm_main. This also makes the code clearer by not using

Fix GH-10385: FPM successful config test early exit

This introduces an enum `fpm_init_return_status` to propagate the status
up to fpm_main. This also makes the code clearer by not using magic
integer return numbers.

Closes GH-10388

show more ...


# 4199b72c 14-Jan-2023 Jakub Zelenka

Fix GH-10315: FPM unknown child alert not valid

This changes the log level for an unknown child during wait as this is
not unuasual if FPM master has pid 1 and also possible in some case

Fix GH-10315: FPM unknown child alert not valid

This changes the log level for an unknown child during wait as this is
not unuasual if FPM master has pid 1 and also possible in some cases
for higher pid processes. Based on that and the fact that this is not
really a problem, there is just a debug level message emitted for pid 1
and for higher pid a warning is emitted.

Closes GH-10319

show more ...


# fe2dc2b4 03-Feb-2023 Tyson Andre

Avoid crash for reset/end/next/prev() on ffi classes (#9711)

(And any PECLs returning `zend_empty_array` in the handler->get_properties
overrides)

Closes GH-9697

This i

Avoid crash for reset/end/next/prev() on ffi classes (#9711)

(And any PECLs returning `zend_empty_array` in the handler->get_properties
overrides)

Closes GH-9697

This is similar to the fix used in d9651a941915eb5fb5ad557090b65256fd8509b6
for array_walk.

This should make it safer for php-src (and PECLs, long-term) to return
the empty immutable array in `handler->get_properties` to avoid wasting memory.
See https://github.com/php/php-src/issues/9697#issuecomment-1273613175

The only possible internal iterator position for the empty array is at the end
of the empty array (nInternalPointer=0).
The `zend_hash*del*` helpers will always set nInternalPointer to 0 when an
array becomes empty,
regardless of previous insertions/deletions/updates to the array.

show more ...


# d17175cb 31-Jan-2023 Derick Rethans

Merge remote-tracking branch 'derickr/GH-10447-p-format-specifier' into PHP-8.1


# ec4939b1 27-Jan-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix incorrect check in phar tar parsing

The entry.flags was used to check whether the entry has the directory
flag. The flags however were masked to only contain the permissions. We

Fix incorrect check in phar tar parsing

The entry.flags was used to check whether the entry has the directory
flag. The flags however were masked to only contain the permissions. We
need to check the mode, before the permission masking, instead of the
flags to check whether it is a directory.

Closes GH-10464

Signed-off-by: George Peter Banyard <girgias@php.net>

show more ...

# 284c2932 28-Jan-2023 Aaron Piotrowski

Fix GH-10437: Set active fiber to null on bailout (#10443)

# a24ac59e 27-Jan-2023 Arnaud Le Blanc

[ci skip] NEWS

1...<<11121314151617181920>>...569