History log of /php-src/NEWS (Results 151 – 175 of 14903)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# f26dd135 25-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10614: imagerotate will turn the picture all black, when rotated 90

This is a backport of the upstream libgd PR that was recently committed
[1].

[1] https://github.com/li

Fix GH-10614: imagerotate will turn the picture all black, when rotated 90

This is a backport of the upstream libgd PR that was recently committed
[1].

[1] https://github.com/libgd/libgd/pull/862

Closes GH-13246.

show more ...


# 4a487294 24-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10344: imagettfbbox(): Could not find/open font UNC path

libgd uses an incorrect absolute path check in gdft.c.
It checks if either the path starts with a '/' (only valid on Posix

Fix GH-10344: imagettfbbox(): Could not find/open font UNC path

libgd uses an incorrect absolute path check in gdft.c.
It checks if either the path starts with a '/' (only valid on Posix
btw), or whether it contains something of the form C:\ or C:/.
However, this overlooks the possibility of using UNC paths on Windows.
As we already do PHP-specific stuff with VCWD_ macros, use
IS_ABSOLUTE_PATH to check for an absolute path which will take into
account UNC paths as well.

Closes GH-13241.

show more ...


# ba80372a 28-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13037: PharData incorrectly extracts zip file

The code currently assumes that the extra field length of the central
directory entry and the local entry are the same, but that's no

Fix GH-13037: PharData incorrectly extracts zip file

The code currently assumes that the extra field length of the central
directory entry and the local entry are the same, but that's not the
case. For example, the "Extended Timestamp extra field" differs in size
for local vs central directory entries. This causes the file contents
offset to be incorrect because it is based on the central directory
length instead of the local entry length. Fix it by reading the local
entry and getting the size from there as well as checking consistency
for the file name length.

Closes GH-13045.

show more ...


# d417072e 23-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13232: Segmentation fault will be reported when JIT is off but JIT_debug is still on

Closes GH-13234.


# 7f7031eb 20-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12504: Corrupted session written when there's a fatal error in autoloader

For details and reasoning, see [1] and following.

[1] https://github.com/php/php-src/issues/12504#is

Fix GH-12504: Corrupted session written when there's a fatal error in autoloader

For details and reasoning, see [1] and following.

[1] https://github.com/php/php-src/issues/12504#issuecomment-1790870399

Closes GH-13207.

show more ...


# fae27cd8 22-Jan-2024 Remi Collet

NEWS


# 242f8928 22-Jan-2024 Remi Collet

NEWS


# d6536468 18-Jan-2024 Ilija Tovilo

Fix iterator position resetting

Previously, when an array was converted from packed to hashed, iterators would
not be correctly reset to 0. Similarly, removing the last element from an a

Fix iterator position resetting

Previously, when an array was converted from packed to hashed, iterators would
not be correctly reset to 0. Similarly, removing the last element from an array
would decrease nNumUsed but not actually fix the iterator position, causing the
element to be skipped in the next iteration.

Some code was also removed that skips over IS_UNDEF elements for
nInternalPointer and iterator positions. This is unnecessary, as this already
happens during iteration.

Closes GH-13178
Closes GH-13188

show more ...


# fe064d7f 19-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13142: Undefined variable name is shortened when contains \0

Uses the new %S formatter and introduces the necessary changes and
helpers.


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

Fix GH-13177: PHP 8.3.2: final private constructor not allowed when used in trait

zend_compile has an exception to this rule for constructors using
`zend_is_constructor`, which compares

Fix GH-13177: PHP 8.3.2: final private constructor not allowed when used in trait

zend_compile has an exception to this rule for constructors using
`zend_is_constructor`, which compares the function name to
`__construct`. Sadly, `zend_is_constructor` is not a public API, but we
can just do the string compare ourselves.

Closes GH-13179.

show more ...


# 0d21a8dc 24-Nov-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12107: When running a stored procedure (that returns a result set) twice, PHP crashes

Closes GH-12771.


# 98e2948c 14-Jan-2024 Vincent JARDIN

ext/openssl: Add X509 purpose constants.

- X509_PURPOSE_OCSP_HELPER.
- X509_PURPOSE_TIMESTAMP_SIGN.
- Also X509_PURPOSE_ANY is ok since 1.0.1+

Close GH-13149


# 4bd63568 18-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix argument type of simplexml_import_dom (#13170)

It needs to be "object".
This is because first- and third-party extension can register custom
node types using `php_libxml_register

Fix argument type of simplexml_import_dom (#13170)

It needs to be "object".
This is because first- and third-party extension can register custom
node types using `php_libxml_register_export`. So we don't know upfront
what types can be expected.

This also changes the error to a TypeError everywhere.

show more ...


# 8cc472d5 18-Jan-2024 Ayesh Karunaratne

ext/intl: Add NumberFormatter::ROUND_HALFODD

The NumberFormatter::ROUND_HALFEVEN constant exists in PHP already, but its counterpart ROUND_HALFODD was missing.
This adds it, using `UNUM_

ext/intl: Add NumberFormatter::ROUND_HALFODD

The NumberFormatter::ROUND_HALFEVEN constant exists in PHP already, but its counterpart ROUND_HALFODD was missing.
This adds it, using `UNUM_ROUND_HALF_ODD`

Close GH-13191

show more ...


# 120bd364 22-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix crashes with entity references and predefined entities

Closes GH-13004.


# 42cbace1 16-Jan-2024 Ilija Tovilo

Fix range inference since "proper-range-semantics" RFC

* Arrays returned from range are never empty
* When step is a double value representable by a long, it is coerced implicitly.

Fix range inference since "proper-range-semantics" RFC

* Arrays returned from range are never empty
* When step is a double value representable by a long, it is coerced implicitly.
As such, passing a double step no longer guarantees that the result is a
non-int array.

Closes GH-13166

show more ...


# 5e9e9c9d 12-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13071: Copying large files using mmap-able source streams may exhaust available memory and fail

Commit 5cbe5a538c disabled chunking for all writes to streams. However,
user stream

Fix GH-13071: Copying large files using mmap-able source streams may exhaust available memory and fail

Commit 5cbe5a538c disabled chunking for all writes to streams. However,
user streams have a callback where code is executed on data that is
subject to the memory limit. Therefore, when using large writes or
stream_copy_to_stream/copy the memory limit can easily be hit with large
enough data.

To solve this, we reintroduce chunking for userspace streams.
Users have control over the chunk size, which is neat because
they can improve the performance by setting the chunk size if
that turns out to be a bottleneck.

In an ideal world, we add an option so we can "ask" the stream whether
it "prefers" chunked writes, similar to how we have
php_stream_mmap_supported & friends. However, that cannot be done on
stable branches.

Closes GH-13136.

show more ...


# 2cde4b2e 15-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-13097: Anonymous class reference in trigger_error / thrown Exception

Closes GH-13153.


# 9814d4a1 15-Jan-2024 divinity76

Fix missing error check in curl_multi_init()

Closes GH-13157.


# c334de8a 16-Jan-2024 Saki Takamachi

[skip ci] Fixed NEWS


# fa751c7d 13-Jan-2024 SakiTakamachi

Fix GH-13119 (#13125)

Fixed an issue where pdo_firebird float and double type values were wrong.

Changed from using `%F` format with `zend_strpprintf` to using `%H` format with

Fix GH-13119 (#13125)

Fixed an issue where pdo_firebird float and double type values were wrong.

Changed from using `%F` format with `zend_strpprintf` to using `%H` format with
`zend_strpprintf_unchecked`.

Fixes GH-13119
Closes GH-13125

show more ...


# 5e2a586c 10-Dec-2023 David Carlier

ext/openssl: fix libressl build.

Close GH-12919


# ed64949d 14-Jan-2024 Ilija Tovilo

strtok is not comptime()

Fixes GH-13145
Closes GH-13148


# 97c6da1d 14-Jan-2024 Tim Düsterhus

random/standard: Correctly handle broken engines in php_array_pick_keys (#13138)


# 90785dd8 12-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[RFC] Improve callbacks in ext/dom and ext/xsl (#12627)


12345678910>>...597