History log of /PHP-7.4/ (Results 251 – 275 of 92142)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
7a8ffcec09-Apr-2021 Dmitry Stogov

Fixed type inference for OP_DATA

29fa4d2008-Apr-2021 Nikita Popov

Don't mark non-refcounted phi as live

If the value is not refcounted, then it doesn't matter if the
FREE gets dropped.

0826a54808-Apr-2021 Nikita Popov

Fix DCE of FREE of COALESCE

When encountering the following SSA graph:

BB1:
#2.T1 [string] = COALESCE #1.CV0($str) [null, string] BB2

BB2:
#5.T1 [st

Fix DCE of FREE of COALESCE

When encountering the following SSA graph:

BB1:
#2.T1 [string] = COALESCE #1.CV0($str) [null, string] BB2

BB2:
#5.T1 [string] = QM_ASSIGN string("")

BB3:
#7.X1 [string] = Phi(#2.X1 [string], #5.X1 [string])
FREE #7.T1 [string]

We would currently determine that #7, #5 are dead, and eliminate
the FREE and QM_ASSIGN. However, we cannot eliminate #2, as
COALESCE is also responsible for control flow.

Fix this my marking all non-CV phis as live to start with. This
can be relaxed to check the kind of the source instruction, but
I couldn't immediately come up with a case where it would be
useful.

show more ...

25f5a1b208-Apr-2021 Remi Collet

Improve fix for #80783

eebcfeb608-Apr-2021 Nikita Popov

Support more than NGROUPS_MAX groups on macos

I suspect this is the cause for our recent CI failures. Apparently,
on macos it is possible for getgroups() to return more than
NGROUPS_

Support more than NGROUPS_MAX groups on macos

I suspect this is the cause for our recent CI failures. Apparently,
on macos it is possible for getgroups() to return more than
NGROUPS_MAX groups. We avoid an EINVAL in that case by fetching
the exact number of groups in advance. This should work on both
macos and posix systems.

show more ...

0a181ca207-Apr-2021 Christoph M. Becker

Update version in main/php_version.h as well

Otherwise the file is modified by each new build, what is confusing.

9688071606-Apr-2021 Christoph M. Becker

Fix #80880: SSL_read on shutdown, ftp/proc_open

When `SSL_read()` after `SSL_shutdown()` fails with `SSL_ERROR_SYSCALL`,
we should not warn about this, because it is likely caused by the

Fix #80880: SSL_read on shutdown, ftp/proc_open

When `SSL_read()` after `SSL_shutdown()` fails with `SSL_ERROR_SYSCALL`,
we should not warn about this, because it is likely caused by the peer
having closed the connection without having sent a close_notify
shutdown alert.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-6803.

show more ...

50f4765928-Mar-2021 Dylan K. Taylor

.gdbinit: make zbacktrace show the correct stack when switching threads

I found this mainly to be a problem when working with threading
extensions. zbacktrace doesn't show the correct st

.gdbinit: make zbacktrace show the correct stack when switching threads

I found this mainly to be a problem when working with threading
extensions. zbacktrace doesn't show the correct stack when switching
threads.

Closes GH-6814.

show more ...

39d8fc1e31-Mar-2021 Dmitry Stogov

Changed PowerPC CPU registers used by Zend VM to work around GCC bug.

Old registers (r28/r29) might be clobbered by _restgpr routine used for return from C function compiled with -Os.

206fd35a29-Mar-2021 Rowan Tommins

Handle reference zvals when outputting superglobals in phpinfo()

Fixes <https://bugs.php.net/80915>.

Closes GH-80915.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>

75cb678224-Mar-2021 Christoph M. Becker

Fix #69668: SOAP special XML characters in namespace URIs not encoded

`xmlNewNs()` does not XML encode the passed `href`, so we need to do
that manually.

Closes GH-6804.

Fix #69668: SOAP special XML characters in namespace URIs not encoded

`xmlNewNs()` does not XML encode the passed `href`, so we need to do
that manually.

Closes GH-6804.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>

show more ...

498eb8e023-Mar-2021 Christoph M. Becker

Fix #73533: Invalid memory access in php_libxml_xmlCheckUTF8

A string passed to `php_libxml_xmlCheckUTF8()` may be longer than
1<<31-1 bytes, so we're better using a `size_t`.

C

Fix #73533: Invalid memory access in php_libxml_xmlCheckUTF8

A string passed to `php_libxml_xmlCheckUTF8()` may be longer than
1<<31-1 bytes, so we're better using a `size_t`.

Closes GH-6802.

show more ...

688e56d022-Mar-2021 Christoph M. Becker

Properly initialize PS(mod) on RINIT

We need to do that in case a user handler has been set. However, we
can't do that in `php_rinit_session_globals()` since that function is
called

Properly initialize PS(mod) on RINIT

We need to do that in case a user handler has been set. However, we
can't do that in `php_rinit_session_globals()` since that function is
called by PHP function `session_destroy()` too, but in that case we
don't want to reset PS(mod).

Closes GH-6795.

show more ...

838951c222-Mar-2021 Christoph M. Becker

Fix #80889: amendment

`session_set_save_handler()` may be called with callables instead of an
object; we need to cater to that as well.

We also extract a set_user_save_handler_i

Fix #80889: amendment

`session_set_save_handler()` may be called with callables instead of an
object; we need to cater to that as well.

We also extract a set_user_save_handler_ini() function to avoid code
duplication.

Closes GH-6796.

show more ...

bc7ea73d27-Nov-2020 Jakub Zelenka

Use ServerClientTestCase in a test for default_socket_timeout=-1

538f95b121-Mar-2021 Jakub Zelenka

Fix NEWS entry position for the latest FPM fix

c483b59128-Feb-2021 Jakub Zelenka

Fix bug #80024: Duplication of info about inherited socket after pool removing

06bfada919-Mar-2021 Christoph M. Becker

Fix #80889: Cannot set save handler when save_handler is invalid

There is no need to require a (valid) save_handler to be set, when a
user handler is supposed to be set. We just have to

Fix #80889: Cannot set save handler when save_handler is invalid

There is no need to require a (valid) save_handler to be set, when a
user handler is supposed to be set. We just have to make sure, that
no user handler is already set in this case.

Closes GH-6788.

show more ...

bccca0b525-Feb-2021 Christoph M. Becker

Fix #80783: PDO ODBC truncates BLOB records at every 256th byte

It is not guaranteed, that the driver inserts only a single NUL byte at
the end of the buffer. Apparently, there is no wa

Fix #80783: PDO ODBC truncates BLOB records at every 256th byte

It is not guaranteed, that the driver inserts only a single NUL byte at
the end of the buffer. Apparently, there is no way to find out the
actual data length in the buffer after calling `SQLGetData()`, so we
adjust after the next `SQLGetData()` call.

We also prevent PDO::ODBC_ATTR_ASSUME_UTF8 from fetching garbage, by
fetching all chunks with the same C type.

Closes GH-6716.

show more ...

4be867e918-Mar-2021 Nikita Popov

Fix locale switch back to C in pcre

The compile context is shared between patterns, so we need to set
the character tables unconditionally in case we switched from
a non-C locale to

Fix locale switch back to C in pcre

The compile context is shared between patterns, so we need to set
the character tables unconditionally in case we switched from
a non-C locale to the C locale.

show more ...

a08847ab15-Mar-2021 Christoph M. Becker

Fix #66783: UAF when appending DOMDocument to element

According to the DOM standard, elements may only contain element, text,
processing instruction and comment nodes[1]. It is also spe

Fix #66783: UAF when appending DOMDocument to element

According to the DOM standard, elements may only contain element, text,
processing instruction and comment nodes[1]. It is also specified that
a HierarchyRequestError should be thrown if a document is to be
inserted[2]. We follow that standard, and prevent the use-after-free
this way.

[1] <https://dom.spec.whatwg.org/#node-trees>
[2] <https://dom.spec.whatwg.org/#mutation-algorithms>

Closes GH-6765.

show more ...

4adc08a416-Mar-2021 Derick Rethans

Fix build version too

5e4ee3d016-Mar-2021 Derick Rethans

NEWS for 7.4.18

eb1d1fe316-Mar-2021 Derick Rethans

Prepare for 7.4.17RC1

f448b0e601-Mar-2021 Christoph M. Becker

Fix #80817: dba_popen() may cause segfault during RSHUTDOWN

We need to close persistent streams with the proper flag.

1...<<11121314151617181920>>...3686