History log of /php-src/NEWS (Results 1 – 25 of 15532)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# fcbfd5a6 12-Dec-2024 Christoph M. Becker

Include relevant system headers before defining fallbacks

Otherwise we may define the fallbacks, and later inclusion of the
system headers may attempt to redefine those.

Fixes G

Include relevant system headers before defining fallbacks

Otherwise we may define the fallbacks, and later inclusion of the
system headers may attempt to redefine those.

Fixes GH-17112.
Closes GH-17129.

show more ...


# 4bfe69bb 21-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17225: NULL deref in spl_directory.c

NULL checks for the glob stream are inconsistently applied. To solve
this generally, factor it out to a helper function so it's less likely

Fix GH-17225: NULL deref in spl_directory.c

NULL checks for the glob stream are inconsistently applied. To solve
this generally, factor it out to a helper function so it's less likely
to be forgotten in the future.

Closes GH-17231.

show more ...


# 61615d56 21-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17224: UAF in importNode

Wrong document pointer is used for the namespace copy.

Closes GH-17230.


# 2c3b56de 19-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17216: Trampoline crash on error

The error handling is incomplete on argument cleanup.
1. The fci is not cleared which means that zend_free_trampoline() is
never called.

Fix GH-17216: Trampoline crash on error

The error handling is incomplete on argument cleanup.
1. The fci is not cleared which means that zend_free_trampoline() is
never called.
2. The cleaning for extra named arguments was missing, resulting in
memory leak.

Closes GH-17219.

show more ...


# c4bb6e6c 20-Dec-2024 David CARLIER

ext/sockets: further timeout handling changes. (#17210)

close GH-17210


# 6f579934 19-Dec-2024 Arnaud Le Blanc

Add observer temporary to dl'ed functions

When observer is enabled, we normally add an extra temporary to all
functions, to store the previously observed frame. However, this is done in

Add observer temporary to dl'ed functions

When observer is enabled, we normally add an extra temporary to all
functions, to store the previously observed frame. However, this is done in
zend_observer_post_startup() so it doesn't happen to dl'ed() functions.

One possible fix would be to move that from zend_observer_post_startup()
to zend_register_functions(), but this would be too early: Observer may
not be enabled when zend_register_functions() is called, and may still be
enabled later.

However, when zend_register_functions() is called at run-time (during dl()),
we know definitively whether observer is enabled.

Here I update zend_register_functions() to add a temporary to dl'ed()
functions when observer is enabled.

Fixes: GH-17211
Closes: GH-17220

show more ...


# 16c0e575 29-Jun-2024 David Carlier

Fix GH-14709 overflow on recurrences for DatePeriod::__construct

close GH-14710


# a23ecc0a 19-Dec-2024 Arnaud Le Blanc

NEWS for GH-17168


# fb2443ac 18-Dec-2024 David Carlier

ext/posix posix_ttyname/posix_isatty fd error handling update.

Set to `EBADF` errno for posix_ttyname when out of ranges.
posix_fpathconf now returns false on out of range file descripto

ext/posix posix_ttyname/posix_isatty fd error handling update.

Set to `EBADF` errno for posix_ttyname when out of ranges.
posix_fpathconf now returns false on out of range file descriptors.

close GH-17209

show more ...


# 6666cc83 18-Dec-2024 Dmitry Stogov

Fix RC inference of op1 of FETCH_OBJ and INIT_METHOD_CALL

Fixes GH-17151
Closes GH-17152


# f0441744 17-Dec-2024 Ilija Tovilo

Fix incorrect dynamic prop offset in hooked prop iterator

Fixes GH-17200
Closes GH-17203


# 53b69ba8 08-Dec-2024 Christoph M. Becker

Fix GH-17067: glob:// wrapper doesn't cater to CWD for ZTS builds

`glob(3)` doesn't know the virtual CWD of PHP, so we need to pass an
absolute path for ZTS builds. In lack of a reusabl

Fix GH-17067: glob:// wrapper doesn't cater to CWD for ZTS builds

`glob(3)` doesn't know the virtual CWD of PHP, so we need to pass an
absolute path for ZTS builds. In lack of a reusable routine, we copy
the code from `glob()` and adapt as needed.

Closes GH-17074.

show more ...


# d25aac29 10-Dec-2024 Derick Rethans

Fixed GH-16944: Refactor IP ranges by using the tables from RFC 6890


# 5f13c62c 17-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17198: SplFixedArray assertion failure with get_object_vars

Because the properties table contains both a numeric index and a string
index that map to 0 in a symbol table, this cau

Fix GH-17198: SplFixedArray assertion failure with get_object_vars

Because the properties table contains both a numeric index and a string
index that map to 0 in a symbol table, this causes an assertion failure.
Looking at the manual page of get_object_vars(), it seems that only real
properties must be included. Given that SplFixedArray's elements are not
accessible like properties, they should be excluded. This restores PHP
8.3 behaviour. The reason that this didn't cause problems on 8.3 is
because it used a different handler (get_properties).

Closes GH-17206.

show more ...


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

Fix GH-17201: Dom\TokenList issues with interned string replace

If a bucket previously had a non-interned string, and is now replaced
with an interned string, then the type flags still i

Fix GH-17201: Dom\TokenList issues with interned string replace

If a bucket previously had a non-interned string, and is now replaced
with an interned string, then the type flags still incorrectly state
it's a non-interned string. This leads to the refcount being edited for
interned strings, which in turn can lead to a crash when protect_memory
is set.

Closes GH-17207.

show more ...


# 18d47cf6 17-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[ci skip] News for GH-17101


# 8a649a83 12-Dec-2024 David Carlier

ext/sockets: socket_set_option switch from convert_to_long to zval_get_long.
to be explicit when the expected type is not met. Check SO_LINGER values
for possible overflow.

close GH-

ext/sockets: socket_set_option switch from convert_to_long to zval_get_long.
to be explicit when the expected type is not met. Check SO_LINGER values
for possible overflow.

close GH-17135

show more ...


# 2104097a 13-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17140 (Assertion failure in JIT trace exit with ZEND_FETCH_DIM_FUNC_ARG)

ZEND_FETCH_DIM_FUNC_ARG should also be repeated on undefined access,
consistent to how ZEND_FETCH_DIM_R is

Fix GH-17140 (Assertion failure in JIT trace exit with ZEND_FETCH_DIM_FUNC_ARG)

ZEND_FETCH_DIM_FUNC_ARG should also be repeated on undefined access,
consistent to how ZEND_FETCH_DIM_R is handled. The opcode was just
missing from the assertion list.

Closes GH-17148.

Co-authored-by: Dmitry Stogov <dmitry@zend.com>

show more ...


# 6c198e38 15-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16255: Unexpected nan value in ext/gd/libgd/gd_filter.c

Closes GH-17169.


# 52ebdfbe 16-Dec-2024 Saki Takamachi

Correctly round rounding mode with zero edge case (#17065)

Fixes #17064
Closes #17065


# 2df9f327 15-Dec-2024 Gina Peter Banyard

ext/pcntl: Fix memory leak in cleanup code of pcntl_exec()


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

Fix GH-17162: zend_array_try_init() with dtor can cause engine UAF

Closes GH-17167.


# 0a3442fb 15-Dec-2024 David Carlier

ext/pgsql fixing further calls with flexible arguments number.

continuation of GH-17161

close GH-17165


# 142f85e2 13-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17137: Segmentation fault ext/phar/phar.c

Commit edae2431 attempted to fix a leak and double free, but didn't
properly understand what was going on, causing a reference count mist

Fix GH-17137: Segmentation fault ext/phar/phar.c

Commit edae2431 attempted to fix a leak and double free, but didn't
properly understand what was going on, causing a reference count mistake
and subsequent segfault in this case.

The first mistake of that commit is that the reference count should've
been increased because we're reusing a phar object. The error handling
path should've gotten changed instead to undo this refcount increase
instead of not refcounting at all (root cause of this bug).

The second mistake is that the alias isn't supposed to be transferred or
whatever, that just doesn't make sense. The reason the test
bug69958.phpt originally leaked is because in the non-reuse case we
borrowed the alias and otherwise we own the alias. If we own the alias
the alias information shouldn't get deleted anyway as that would desync
the alias map.

Fixing these will reveal a third issue in which the alias memory is not
always properly in sync with the persistence-ness of the phar, fix this
as well.

Closes GH-17150.

show more ...


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

Fix GH-17153: SimpleXML crash when using autovivification on document

In the case of a member string, `mynode` may also be a document, which
doesn't have a namespace.

Closes GH-

Fix GH-17153: SimpleXML crash when using autovivification on document

In the case of a member string, `mynode` may also be a document, which
doesn't have a namespace.

Closes GH-17156.

show more ...


12345678910>>...622