History log of /php-src/NEWS (Results 176 – 200 of 15454)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# e4335baf 02-Oct-2024 Arnaud Le Blanc

[ci skip] NEWS for GH-16004


# 4512a8fe 02-Oct-2024 Arnaud Le Blanc

[ci skip] NEWS for GH-16026


# 066d18f2 01-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16151: Assertion failure in ext/dom/parentnode/tree.c

Unfortunately, old DOM allows attributes to be used as parent nodes.
Only text nodes and entities are allowed as children for

Fix GH-16151: Assertion failure in ext/dom/parentnode/tree.c

Unfortunately, old DOM allows attributes to be used as parent nodes.
Only text nodes and entities are allowed as children for these types of
nodes, because that's the constraint DOM and libxml give us.

Closes GH-16156.

show more ...


# 63e1ebe7 01-Oct-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16149: Null pointer dereference in DOMElement->getAttributeNames()

A namespace without a prefix is by definition always the "xmlns"
namespace.

Closes GH-16155.


# e609a219 29-Sep-2024 David Carlier

ext/pgsql: pgsql_copy_from to support iterable.

inspired from the Pdo\Pgsql new feature GH-15893.

close GH-16124


# f8b925b6 30-Sep-2024 Gina Peter Banyard

NEWS entries for LDAP bug fixes


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

Fix GH-15168: stack overflow in json_encode()

The JSON encoder is recursive, and it's far from easy to make it
iterative. Add a cheap stack limit check to prevent a segfault.
This us

Fix GH-15168: stack overflow in json_encode()

The JSON encoder is recursive, and it's far from easy to make it
iterative. Add a cheap stack limit check to prevent a segfault.
This uses the PHP_JSON_ERROR_DEPTH error code that already talks about
the stack depth. Previously this was only used for the $depth argument.

Closes GH-16059.

show more ...


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

Implement request #30622: make $namespace parameter functional

This parameter never actually did anything and was forgotten about.
We solve this by detecting when we have a $namespace ar

Implement request #30622: make $namespace parameter functional

This parameter never actually did anything and was forgotten about.
We solve this by detecting when we have a $namespace argument
(that won't conflict with the name argument) and creating a Clark
notation name out of it.

Closes GH-16123.

show more ...


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

Optimize in-memory XMLWriter

We're currently using a libxml buffer, which requires copying the buffer
to zend_strings every time we want to output the string. Furthermore,
its use of

Optimize in-memory XMLWriter

We're currently using a libxml buffer, which requires copying the buffer
to zend_strings every time we want to output the string. Furthermore,
its use of the system allocator instead of ZendMM makes it not count
towards the memory_limit and hinders performance.

This patch adds a custom writer such that the strings are written to a
smart_str instance, using ZendMM for improved performance, and giving
the ability to not copy the string in the common case where flush has
empty set to true.

Closes GH-16120.

show more ...


# 63e0b9cc 20-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix #49169: SoapServer calls wrong function, although "SOAP action" header is correct

Although the original reproducer no longer exists, I was able to cook up
something similar.
The

Fix #49169: SoapServer calls wrong function, although "SOAP action" header is correct

Although the original reproducer no longer exists, I was able to cook up
something similar.
The problem is that there are two ways ext-soap currently looks up
functions:
1) By matching the exact function name; but this doesn't work if the
function name is not in the body.
2) By matching the parameter names.

Neither of these work when we don't have the function name in the body,
and when the parameter names are not unique. That's where we can use the
"SOAPAction" header to distinguish between different actions. This header
should be checked first and be matched against the "soapAction"
attribute in the WSDL. We keep the existing fallbacks such that the
chance of a BC break is minimized.
Note that since #49169 a potential target namespace is ignored right
now.

Closes GH-15970.

show more ...


# 332b067c 17-Sep-2024 David Carlier

Fix GH-15937: stream timeout option overflow.

close GH-15942


# a1cc0918 30-Sep-2024 Tim Düsterhus

reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures (#16129)

* reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inN

reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures (#16129)

* reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures

Fixes GH-16122

* reflection: Clean up implementation of `ReflectionFunctionAbstract::inNamespace()`

* reflection: Clean up implementation of `ReflectionFunctionAbstract::getNamespaceName()`

show more ...


# 1da352c3 16-Jun-2024 David Carlier

ext/pgsql: adding pg_close_stmt.

up to postgresql 17, when done with a prepared statement, we could
release it with DEALLOCATE sql command which is fine ; until we want
to implement

ext/pgsql: adding pg_close_stmt.

up to postgresql 17, when done with a prepared statement, we could
release it with DEALLOCATE sql command which is fine ; until we want
to implement a cache solution based on statement ids.

Since PostgreSQL 17, PQclosePrepared uses internally the `close` protocol
allowing to reuse the statement name while still freeing it.
Since the close protocol implementation had been added on libpq within
this release, no way to reimplement it.

close GH-14584

show more ...


# 68537fd9 03-Sep-2024 Guillaume Outters

Fix / implement GH-15287: add a lazy fetch to Pdo\PgSql

Make Pdo\PgSql accept Pdo::setAttribute(PDO::ATTR_PREFETCH, 0) to enter libpq's single row mode.
This avoids storing the whole res

Fix / implement GH-15287: add a lazy fetch to Pdo\PgSql

Make Pdo\PgSql accept Pdo::setAttribute(PDO::ATTR_PREFETCH, 0) to enter libpq's single row mode.
This avoids storing the whole result set in memory before being able to call the first fetch().

close GH-15750

show more ...


# 19bba837 28-Sep-2024 Gina Peter Banyard

ext/ldap: Fix GH-16101 (Segfaults in php_ldap_do_search() when LDAPs is not a list)

Closes GH-16102


# dce0d976 25-Sep-2024 Jakub Zelenka

Fix stub for openssl_csr_new


# d00dd2b4 28-Sep-2024 David Carlier

ext/random: haiku supports arc4random api too.

close GH-16095


# 7f5e96d0 15-Sep-2024 武田 憲太郎

ext/pdo_pgsql: Expanding COPY input from an array to an iterable

close GH-15893


# 706bcdbc 18-Sep-2024 Ilija Tovilo

Fix printing backtrace of fake generator frame

Fixes GH-15851
Closes GH-15952


# 15a0c3a9 18-Sep-2024 Ilija Tovilo

Fix failed assertion when promoting Serialize deprecation to exception

Fixes GH-15907
Closes GH-15951


# fcbcf2f2 26-Sep-2024 Ben Ramsey

PHP-8.1 is now for PHP 8.1.31-dev


# d5035a70 23-Sep-2024 Jakub Zelenka

[skip ci] Fix typo in NEWS

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>


# 8d87bc3e 23-Sep-2024 Jakub Zelenka

Update NEWS with security fixes info


# 87d59d7f 16-Sep-2024 Christoph M. Becker

Fix GH-15905: Assertion failure for TRACK_VARS_SERVER

When the superglobals are eagerly initialized, but "S" is not contained
in `variables_order`, `TRACK_VARS_SERVER` is created as empt

Fix GH-15905: Assertion failure for TRACK_VARS_SERVER

When the superglobals are eagerly initialized, but "S" is not contained
in `variables_order`, `TRACK_VARS_SERVER` is created as empty array
with refcount > 1. Since this hash table may later be modified, a flag
is set which allows such COW violations for assertions. However, when
`register_argc_argv` is on, the so far uninitialized hash table is
updated with `argv`, what causes the hash table to be initialized, what
drops the allow-COW-violations flag. The following update with `argc`
then triggers a refcount violation assertion.

Since we consider `HT_ALLOW_COW_VIOLATION` a hack, we do not want to
keep the flag during hash table initialization, so we initialize the
hash table right away after creation for this code path.

Closes GH-15930.

show more ...


# f4c45ee3 25-Sep-2024 Gina Peter Banyard

ext/ldap: Fix GH-16032 (Various NULL pointer dereferencements in ldap_modify_batch())

We check that the "attrib" and "modtype" keys are present in each array.
If not we throw a ValueErro

ext/ldap: Fix GH-16032 (Various NULL pointer dereferencements in ldap_modify_batch())

We check that the "attrib" and "modtype" keys are present in each array.
If not we throw a ValueError, in line with what other validation failure cases do.

Closes GH-16057

show more ...


12345678910>>...619