History log of /php-src/NEWS (Results 926 – 950 of 15454)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d344fe06 15-Sep-2023 Tim Düsterhus

Fix #[Override] on traits overriding a parent method without a matching interface (#12205)

Fixes GH-12189

Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>


# 747335f1 11-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12170: Can't use xpath with comments in SimpleXML

Closes GH-12177.


# b2d244a4 14-Sep-2023 Tim Düsterhus

Show the integer size in phpinfo() (#12201)

Resolves GH-12188


# c2fb10d2 13-Sep-2023 Ilija Tovilo

Fix filter_var with callback and explicit REQUIRE_SCALAR

For some reason, FILTER_CALLBACK disables the FILTER_REQUIRE_SCALAR flag that is
normally set by default. While surprising, this

Fix filter_var with callback and explicit REQUIRE_SCALAR

For some reason, FILTER_CALLBACK disables the FILTER_REQUIRE_SCALAR flag that is
normally set by default. While surprising, this is not something we can change.

However, even specifying FILTER_REQUIRE_SCALAR explicitly does not corrently set
this flag. This is because FILTER_CALLBACK zeroes the flags after they have been
populated from the parameters.

We reverse the checks to make explicitly specifying the flag behave as expected.

Closes GH-12203

show more ...


# c1cf0026 12-Sep-2023 Ben Ramsey

PHP-8.1 is now for PHP 8.1.25-dev


# 58b8393c 08-Sep-2023 Graham Campbell

Removed incorrect news items for things already in 8.3.x or earlier

Closes GH-12160


# 107443b3 09-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix #52751: XPath processing-instruction() function is not supported.

Closes GH-12165.


# 45c7e3b0 06-Sep-2023 Máté Kocsis

Fix #12123 Make _ZEND_TYPE_PREFIX apply only for MSVC

Closes GH-12136


# 07a9d2fb 08-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-11878: SQLite3 callback functions cause a memory leak with a callable array

In this test file, the free_obj handler is called with a refcount of 2,
caused by the fact we do a GC_A

Fix GH-11878: SQLite3 callback functions cause a memory leak with a callable array

In this test file, the free_obj handler is called with a refcount of 2,
caused by the fact we do a GC_ADDREF() to increase its refcount while
its refcount is still 1 because the Foo object hasn't been destroyed yet
(due to the cycle caused by the sqlite function callback).
Solve this by introducing a get_gc handler.

Closes GH-11881.

show more ...


# aef52253 08-Jul-2023 David Carlier

zend_call_stack_get implementation for NetBSD.

Despite being OpenBSD's predecessor, the approach is in fact
a lot closer to Linux, at least in principle. We purposely
avoid reading /

zend_call_stack_get implementation for NetBSD.

Despite being OpenBSD's predecessor, the approach is in fact
a lot closer to Linux, at least in principle. We purposely
avoid reading /proc/N/maps to be more future-proof.

Close GH-11637

show more ...


# 880faa39 08-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Add DOMNode::compareDocumentPosition() (#12146)

Reference: https://dom.spec.whatwg.org/#dom-node-comparedocumentposition


# c4e8f652 02-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Update bundled pcre2 to 10.42

Closes GH-12109.


# d68073c2 24-Jan-2023 George Peter Banyard

streams: Checking if a stream is castable should not emit warnings for user defined streams

Closes GH-10435


# 64ebadca 07-Sep-2023 Jakub Zelenka

Fix GH-12151: str_getcsv ending with escape zero segfualt

Closes GH-12152


# 748adf18 06-Sep-2023 Ilija Tovilo

Fix zend_separate_if_call_and_write for FUNC_ARGs

Fixes GH-12102
Closees GH-12140


# 5a2b2516 31-Aug-2023 Calvin Buckley

Fix persistent procedural ODBC connections not getting closed

Like oci8, procedural ODBC uses an apply function on the hash list to
enumerate persistent connections and close the specifi

Fix persistent procedural ODBC connections not getting closed

Like oci8, procedural ODBC uses an apply function on the hash list to
enumerate persistent connections and close the specific one. However,
this function take zvals, not resources. However, it was getting casted
as such, causing it to interpret the pointer incorrectly. This could
have caused other issues, but mostly manifested as failing to close the
connection even fi it matched.

The function now takes a zval and gets the resource from that. In
addition, it also removes the cast of the function pointer and moves
casting to the function body, to avoid possible confusion like this in
refactors again. It also cleans up style and uses constants in the
function body.

Closes GH-12132

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

show more ...


# 8a392edd 02-Sep-2023 George Peter Banyard

Fix OSS Fuzz #61865: Undef variable in ++/-- for declared property that is unset in error handler

Reorder when we assign the property value to NULL which is identical to
a3a3964497922bcd

Fix OSS Fuzz #61865: Undef variable in ++/-- for declared property that is unset in error handler

Reorder when we assign the property value to NULL which is identical to
a3a3964497922bcd74282685218d90acea69c296

Just for the declared property case instead of dynamic.

Closes GH-12114

show more ...


# da7a66d6 27-Aug-2023 ju1ius

Prevents double call to internal iterator rewind handler

Closes GH-12060

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


# af2110e6 29-Aug-2023 Ilija Tovilo

Fix freeing of incompletely initialized closures

Addref to relevant fields before allocating any memory. Also only set/remove the
ZEND_ACC_HEAP_RT_CACHE flag after allocating memory.

Fix freeing of incompletely initialized closures

Addref to relevant fields before allocating any memory. Also only set/remove the
ZEND_ACC_HEAP_RT_CACHE flag after allocating memory.

Fixes GH-12073
Closes GH-12074

show more ...


# a579fa80 02-Sep-2023 George Peter Banyard

Fixed bug GH-12020: intl_get_error_message() broken after MessageFormatter::formatMessage() fails

Passing NULL as the pointer to intl_error* will use the global error stack.
This is what

Fixed bug GH-12020: intl_get_error_message() broken after MessageFormatter::formatMessage() fails

Passing NULL as the pointer to intl_error* will use the global error stack.
This is what we need to do instead of pushing it onto the temporary format object that is released.

show more ...


# a022ec53 31-Aug-2023 Calvin Buckley

Fix memory leak with failed SQLPrepare

Closes GH-12095

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


# 1cdcbc05 30-Aug-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-11972: RecursiveCallbackFilterIterator regression in 8.1.18

When you do an assignment between two zvals (no, not zval*), you copy
all fields. This includes the additional u2 data.

Fix GH-11972: RecursiveCallbackFilterIterator regression in 8.1.18

When you do an assignment between two zvals (no, not zval*), you copy
all fields. This includes the additional u2 data. So that means for
example the Z_NEXT index gets copied, which in some cases can therefore
cause a cycle in zend_hash lookups.
Instead of doing an assignment, we should be doing a ZVAL_COPY (or
ZVAL_COPY_VALUE for non-refcounting cases). This avoids copying u2.

Closes GH-12086.

show more ...


# d229a480 08-Aug-2023 George Peter Banyard

Fix GH-11876: ini_parse_quantity() accepts invalid quantities

Closes GH-11910


# ffd7018f 30-Aug-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-11972: RecursiveCallbackFilterIterator regression in 8.1.18

When you do an assignment between two zvals (no, not zval*), you copy
all fields. This includes the additional u2 data.

Fix GH-11972: RecursiveCallbackFilterIterator regression in 8.1.18

When you do an assignment between two zvals (no, not zval*), you copy
all fields. This includes the additional u2 data. So that means for
example the Z_NEXT index gets copied, which in some cases can therefore
cause a cycle in zend_hash lookups.
Instead of doing an assignment, we should be doing a ZVAL_COPY (or
ZVAL_COPY_VALUE for non-refcounting cases). This avoids copying u2.

Closes GH-12086.

show more ...


# 760367dd 30-Aug-2023 Jakub Zelenka

Remove incorrectly updated dtrace change from NEWS


1...<<31323334353637383940>>...619