History log of /PHP-8.4/NEWS (Results 176 – 200 of 14193)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 6a04c79e 22-Sep-2024 Christoph M. Becker

Fix GH-15980: Signed integer overflow in main/streams/streams.c

We need to avoid signed integer overflows which are undefined behavior.
We catch that, and set `offset` to `ZEND_LONG_MAX`

Fix GH-15980: Signed integer overflow in main/streams/streams.c

We need to avoid signed integer overflows which are undefined behavior.
We catch that, and set `offset` to `ZEND_LONG_MAX` (which is also the
largest value of `zend_off_t` on all platforms). Of course, after such
a seek a stream is no longer readable, but that matches the current
behavior for offsets near `ZEND_LONG_MAX`.

Closes GH-15989.

show more ...


# f6db576c 22-Sep-2024 Saki Takamachi <34942839+SakiTakamachi@users.noreply.github.com>

[RFC] ext/bcmath: Added `bcdivmod` (#15740)

RFC: https://wiki.php.net/rfc/add_bcdivmod_to_bcmath

Added bcdivmod() function and added divmod() method to BcMath\Number class.


# 2b90acb4 22-Sep-2024 Christoph M. Becker

Fix GH-15986: Double-free due to Pdo\Pgsql::setNoticeCallback()

We need to release the fcall info cache instead of destroying it.

Closes GH-15987.


# 5bcbe8a3 21-Sep-2024 Christoph M. Becker

Fix minimal Windows version

As of PHP 8.3.0, Windows 8/Server 2012 are the minimum requirement.
However, PR #9104 only updated `_WIN32_WINNT`, but not `WINVER`[1],
`NTDDI_VERSION`[2]

Fix minimal Windows version

As of PHP 8.3.0, Windows 8/Server 2012 are the minimum requirement.
However, PR #9104 only updated `_WIN32_WINNT`, but not `WINVER`[1],
`NTDDI_VERSION`[2] nor the manifest[3].

[1] <https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers>
[2] <https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers>
[3] <https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests>

Closes GH-15975.

show more ...


# f303840a 22-Sep-2024 Christoph M. Becker

Prevent closing of unrelated handles

If our `shmget()` fails for certain reasons, the segment handle is
closed. However, the handle might be reused by Windows, and as such we
must n

Prevent closing of unrelated handles

If our `shmget()` fails for certain reasons, the segment handle is
closed. However, the handle might be reused by Windows, and as such we
must not close it again when shutting down the TSRM.

Closes GH-15984.

show more ...


# 018c0b3d 16-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15908 and GH-15026: leak / assertion failure in streams.c

This was first reported as a leak in GH-15026, but was mistakingly
believed to be a false positive. Then an assertion was

Fix GH-15908 and GH-15026: leak / assertion failure in streams.c

This was first reported as a leak in GH-15026, but was mistakingly
believed to be a false positive. Then an assertion was added and it got
triggered in GH-15908. This fixes the leak. Upon merging into master the
assertion should be removed as well.

Closes GH-15924.

show more ...


# 27b31314 22-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15982: Assertion failure with array_find when references are involved

Closes GH-15983.


# 05cb27a8 21-Sep-2024 Saki Takamachi <34942839+SakiTakamachi@users.noreply.github.com>

ext/bcmath: Check for scale overflow (#15741)


# 9774cedb 18-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15918: Assertion failure in ext/spl/spl_fixedarray.c

SplFixedArray should've never get supported in ArrayObject because it's
overloaded, and so that breaks assumptions. This regre

Fix GH-15918: Assertion failure in ext/spl/spl_fixedarray.c

SplFixedArray should've never get supported in ArrayObject because it's
overloaded, and so that breaks assumptions. This regressed in c4ecd82f.

Closes GH-15947.

show more ...


# 090b53bc 19-Sep-2024 Remi Collet

[ci skip] NEWS + UPGRADING


# 1b9568d3 01-Sep-2024 Ilija Tovilo

Implement backed enum coercion in http_build_query()

Fixes GH-15650
Closes GH-15704


# 422aa17b 18-Sep-2024 Christoph M. Becker

Fix GH-15901: phpdbg: Assertion failure on `i funcs`

New hash tables are not automatically packed, so we must not treat them
as such. Therefore we guard the foreach appropriately.

Fix GH-15901: phpdbg: Assertion failure on `i funcs`

New hash tables are not automatically packed, so we must not treat them
as such. Therefore we guard the foreach appropriately.

Closes GH-15929.

show more ...


# e2da65de 17-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

NEWS for 306dedcf5e

[ci skip]


# c9a4abad 14-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix unsetting DOM properties

This never did anything in lower versions, but on master this crashes
because the virtual properties don't have backing storage. Just forbid
it since it

Fix unsetting DOM properties

This never did anything in lower versions, but on master this crashes
because the virtual properties don't have backing storage. Just forbid
it since it was useless to begin with.

Closes GH-15891.

show more ...


# 31e2ec63 16-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15923: GDB: Python Exception <class 'TypeError'>: exceptions must derive from BaseException

Triggers on release builds when printing data structures.
You can't raise a string, you

Fix GH-15923: GDB: Python Exception <class 'TypeError'>: exceptions must derive from BaseException

Triggers on release builds when printing data structures.
You can't raise a string, you must raise exceptions.

Closes GH-15928.

show more ...


# 4830535b 17-Sep-2024 Juliette <663378+jrfnl@users.noreply.github.com>

[skip ci] PHP 8.4 NEWS: fix typos in parameter names (#15931)

Ref: PR 15362 / https://github.com/php/php-src/commit/c818d944cf998b3151e4b312d655c51223612c4e#diff-7ee66c4f1536ac84dc5bbff1b831

[skip ci] PHP 8.4 NEWS: fix typos in parameter names (#15931)

Ref: PR 15362 / https://github.com/php/php-src/commit/c818d944cf998b3151e4b312d655c51223612c4e#diff-7ee66c4f1536ac84dc5bbff1b8312e2eef24b974b3e48a5c5c2bcfdf2eb8f3ce

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>

show more ...


# 3afb9618 15-Sep-2024 Ayesh Karunaratne

ext/mbstring: Update to Unicode 16

Updates UCD to Unicode 16.0 (released 2024 Sept).

Previously: 0fdffc18, #7502, #14680

Unicode 16 adds several new character sets and case

ext/mbstring: Update to Unicode 16

Updates UCD to Unicode 16.0 (released 2024 Sept).

Previously: 0fdffc18, #7502, #14680

Unicode 16 adds several new character sets and case folding rules.
However, the existing ucgendat script can still parse them.

This also adds a couple test cases to make sure the new rules for
East Asian Wide characters and case folding work correctly. These
tests fail on Unicode 15.1 and older because those verisons do not
contain those rules.

show more ...


# 2fce0bb8 16-Sep-2024 Ilija Tovilo

Implement ReflectionProperty::isFinal()

Closes GH-15919


# 25289dd0 08-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15711: SoapClient can't convert BackedEnum to scalar value

Allow SoapClient to use the backing value during response serialization.

Closes GH-15803.


# 55aa5f3f 16-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15910: Assertion failure in ext/dom/element.c


# c7397f51 16-Sep-2024 Ilija Tovilo

[skip ci] Fix NEWS section


# d75a289f 11-Sep-2024 Ilija Tovilo

Implement ReflectionProperty::hasHook[s]

Closes GH-15844


# ed54d6de 15-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix XML serializer errata: xmlns="" serialization should be allowed

The spec doesn't want to serialize xmlns:foo="", but the description of
the step that checks this does not take into a

Fix XML serializer errata: xmlns="" serialization should be allowed

The spec doesn't want to serialize xmlns:foo="", but the description of
the step that checks this does not take into account that xmlns="" must
be allowed. This patch corrects this errata.

Closes GH-15894.

show more ...


# ac8db365 13-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15868: Assertion failure in xml_parse_into_struct after exception

Upon unwinding from an exception, the parser state is not stable, we
should not continue updating the values if a

Fix GH-15868: Assertion failure in xml_parse_into_struct after exception

Upon unwinding from an exception, the parser state is not stable, we
should not continue updating the values if an exception was thrown.

Closes GH-15879.

show more ...


# 503d9145 02-Sep-2024 David Carlier

Fix GH-15712: overflow on float print with precision ini large value.

When allocating enough room for floats, the allocator used overflows with
large ndigits/EG(precision) value which us

Fix GH-15712: overflow on float print with precision ini large value.

When allocating enough room for floats, the allocator used overflows with
large ndigits/EG(precision) value which used an signed integer to
increase the size of thebuffer.
Testing with the zend operator directly is enough to trigger
the issue rather than higher level math interface.

close GH-15715

show more ...


12345678910>>...568