History log of /PHP-8.1/NEWS (Results 26 – 50 of 14209)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 29dbc4ae 29-Oct-2023 Arnaud Le Blanc

[ci skip] NEWS


# bbfadd32 28-Oct-2023 Arnaud Le Blanc

[ci skip] NEWS


# 83a505e8 14-Oct-2023 Michael Voříšek

Fix GH-11374: Different preg_match result with -d pcre.jit=0

This is a backport of https://github.com/PCRE2Project/pcre2/pull/300.

Closes GH-12439.


# 27797a26 18-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix bug #75306: Memleak in SoapClient

Setting the stream context via php_stream_context_to_zval() will
increase the reference count. So if the new context is created, then it
will en

Fix bug #75306: Memleak in SoapClient

Setting the stream context via php_stream_context_to_zval() will
increase the reference count. So if the new context is created, then it
will end up with a reference count of 2 while it should be 1.

Credits to cmb for the analysis. I arrived at the same patch as he did.

Closes GH-12523.

show more ...


# 9f7f3b20 24-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix incorrect dtor for persistent sdl->encoders

Closes GH-12515.


# 98908db7 24-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[ci skip] NEWS


# 900f0cab 24-Oct-2023 icy17 <1061499390@qq.com>

Fix null pointer dereferences in case of allocation failure

Closes GH-12506.


# 52aa0d9e 23-Sep-2023 Jakub Zelenka

Fix bug #75708: getimagesize with "&$imageinfo" fails on StreamWrappers

Closes GH-12444


# 83a242ec 21-Oct-2023 Jakub Zelenka

Fix GH-12489: Missing sigbio creation checking in openssl_cms_verify

Closes GH-12490


# 01d61605 19-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix segfault and assertion failure with refcounted props and arrays

Closes GH-12478.


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

Fix incorrect uri check in SOAP caching

If i == 0 then the check will compare 0 bytes.
We are supposed to check if the uri is identical.

Closes GH-12479.


# 43e63168 18-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix bug #66150: SOAP WSDL cache race condition causes Segmentation Fault

When we have two processes both trying to cache a WSDL, they might start
writing the data to the same temporary f

Fix bug #66150: SOAP WSDL cache race condition causes Segmentation Fault

When we have two processes both trying to cache a WSDL, they might start
writing the data to the same temporary file, causing file corruption due
to the race condition. Fix this by creating a temporary file first, and
then moving it to the final location. If moving fails then we know
another process finished caching first.

This also fixes #67617 as a consequence of its implementation.

Closes GH-12469.

show more ...


# af3d2f7e 18-Oct-2023 Ilija Tovilo

Fix double-free of doc_comment when overriding static property via trait

When redeclaring an overridden static property with a trait we're removing the
property from the class. However,

Fix double-free of doc_comment when overriding static property via trait

When redeclaring an overridden static property with a trait we're removing the
property from the class. However, because the property itself does not belong to
the class we must not free its associated data.

This issue is exposed by 9a250cc9d6 in PHP 8.3+ because duplicate static
properties in traits are no longer skipped, but redeclared.

Fixes GH-12468

show more ...


# 68aa7931 14-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Add missing module dependency for xsl

This module cannot work without the DOM extension.

Closes GH-12441.


# 0217be4d 22-Sep-2023 Jakub Zelenka

Fix GH-12232: FPM: segfault dynamically loading extension without opcache

Also fixes incorrect assertion in ini init that php_dl is always
temporary.

Closes GH-12277


# d7de0cec 11-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix registerNodeClass with abstract class crashing

This always results in a segfault when trying to instantiate, so this never
worked. At least throw an error instead of segfaulting to p

Fix registerNodeClass with abstract class crashing

This always results in a segfault when trying to instantiate, so this never
worked. At least throw an error instead of segfaulting to prevent developers
from being confused.

Closes GH-12420.

show more ...


# 7e4a3236 10-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12392: Segmentation fault on SoapClient::__getTypes

There are two issues:
- UAF because the hashmap resized while being iterated over, yet the local
variables used internall

Fix GH-12392: Segmentation fault on SoapClient::__getTypes

There are two issues:
- UAF because the hashmap resized while being iterated over, yet the local
variables used internally in the macros are not updated.
- The hashmap being iterated over is modified: entries are deleted after
other entries have been added. This causes the deletion to fail sometimes
because indices of buckets have shifted.

Fix it by using a while loop iteration and HashPosition position tracker
instead.
Issue exists on PHP 8.1 too, but is much harder to trigger.
The test file reproduces the issue reliably on PHP 8.2 and up.

Closes GH-12409.

show more ...


# 71f14510 09-Oct-2023 Daniil Gentili

Fix GH-11121: ReflectionFiber segfault

Closes GH-12391.

Co-authored-by: Aaron Piotrowski <aaron@trowski.com>


# 1f4159e5 11-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[ci skip] NEWS

Entry for 90f2e7607a.


# 71774611 10-Oct-2023 Daniil Gentili

Report warning if JIT cannot be enabled

Closes GH-12404


# be64db59 10-Oct-2023 Patrick Allaert

PHP-8.1 is now for PHP 8.1.26-dev


# 24e5e4ec 08-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-8996: DOMNode serialization on PHP ^8.1

PHP 8.1 introduced a seemingly unintentional BC break in ca94d55a19 by
blocking the (un)serialization of DOM objects.
This was done bec

Fix GH-8996: DOMNode serialization on PHP ^8.1

PHP 8.1 introduced a seemingly unintentional BC break in ca94d55a19 by
blocking the (un)serialization of DOM objects.
This was done because the serialization never really worked and just
resulted in an empty object, which upon unserialization just resulted in
an object that you can't use.

Users can however implement their own serialization methods, but the
commit made that impossible as the ACC flag gets passed down to the
child class. An approach was tried in #10307 with a new ACC flag to
selectively allow serialization with subclasses if they implement the
right methods. However, that was found to be too ad hoc.

Instead, let's abuse how the __sleep and __wakeup methods work to throw
the exception instead. If the child class implements the __serialize /
__unserialize method, then the throwing methods won't be called.
Similarly, if the child class implements __sleep and __wakeup, then
they're overridden and it doesn't matter that they throw.

For the user, this PR has the exact same behaviour for (sub)classes that
don't implement the serialization methods: an exception will be thrown.
For code that previously implemented subclasses with these methods, this
approach will make that code work again. This approach should be both BC
preserving and unbreak user's code.

Closes GH-12388.

For the test:
Co-authored-by: wazelin <contact@sergeimikhailov.com>

show more ...


# fb683877 07-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12380: JIT+private array property access inside closure accesses private property in child class

For private fields, the scope has to be taken into account, otherwise
the property

Fix GH-12380: JIT+private array property access inside closure accesses private property in child class

For private fields, the scope has to be taken into account, otherwise
the property info may come from the wrong ce.

Closes GH-12381.

show more ...


# f6ac08c6 05-Oct-2023 coppolafab

php_cli_server: ensure single date header is present

Currently the PHP Development Server appends a Date header in the
response, despite already set from user code.

Added a chec

php_cli_server: ensure single date header is present

Currently the PHP Development Server appends a Date header in the
response, despite already set from user code.

Added a check condition before append the header, and a test file.

Closes GH-12363.

show more ...


# f4ab4949 29-Sep-2023 Mikhail Galanin

Invalidate path even if the file was deleted

Closes GH-12323


12345678910>>...569