]>
granicus.if.org Git - php/log
Remi Collet [Fri, 20 Mar 2020 11:09:15 +0000 (12:09 +0100)]
fix test, thanks Indrek
Dmitry Stogov [Fri, 20 Mar 2020 10:31:55 +0000 (13:31 +0300)]
CAST to the same type mat be JIT-ed as QM_ASSIGN
Remi Collet [Fri, 20 Mar 2020 10:27:42 +0000 (11:27 +0100)]
ZipArchive::open(): Using empty file as ZipArchive is deprecated
Remi Collet [Fri, 20 Mar 2020 10:19:04 +0000 (11:19 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
unneeded after fix
NEWS
NEWS
Fix Bug #79296 ZipArchive::open fails on empty file
Remi Collet [Fri, 20 Mar 2020 10:18:52 +0000 (11:18 +0100)]
unneeded after fix
Remi Collet [Fri, 20 Mar 2020 10:17:29 +0000 (11:17 +0100)]
NEWS
Remi Collet [Fri, 20 Mar 2020 10:16:38 +0000 (11:16 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
NEWS
Fix Bug #79296 ZipArchive::open fails on empty file
Remi Collet [Fri, 20 Mar 2020 10:16:08 +0000 (11:16 +0100)]
NEWS
Remi Collet [Thu, 19 Mar 2020 16:31:17 +0000 (17:31 +0100)]
Fix Bug #79296 ZipArchive::open fails on empty file
Dmitry Stogov [Fri, 20 Mar 2020 09:33:41 +0000 (12:33 +0300)]
JIT for FETCH_THIS
Derick Rethans [Fri, 20 Mar 2020 09:31:46 +0000 (09:31 +0000)]
Merge branch 'PHP-7.4'
Derick Rethans [Fri, 20 Mar 2020 09:31:37 +0000 (09:31 +0000)]
Mention which categories to use for patch releases
Christoph M. Becker [Fri, 20 Mar 2020 07:57:43 +0000 (08:57 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix potential test conflict
Christoph M. Becker [Fri, 20 Mar 2020 07:56:40 +0000 (08:56 +0100)]
Fix potential test conflict
Cf. <https://ci.appveyor.com/project/php/php-src/builds/
31564684 /job/k9u3xv860fao3n2e#L5578>
Dmitry Stogov [Fri, 20 Mar 2020 07:54:45 +0000 (10:54 +0300)]
Change jit_trace_stack_frame layout
Dmitry Stogov [Thu, 19 Mar 2020 22:37:27 +0000 (01:37 +0300)]
ZEND_MAKE_REF can't throw
Dmitry Stogov [Thu, 19 Mar 2020 22:23:36 +0000 (01:23 +0300)]
JIT for STRLEN
Dmitry Stogov [Thu, 19 Mar 2020 22:01:33 +0000 (01:01 +0300)]
JIT for ECHO and variable string operands
Dmitry Stogov [Thu, 19 Mar 2020 20:59:11 +0000 (23:59 +0300)]
JIT for SEND_FUNC_ARG
Christoph M. Becker [Thu, 19 Mar 2020 07:53:46 +0000 (08:53 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #79396: DateTime hour incorrect during DST jump forward
Christoph M. Becker [Thu, 19 Mar 2020 07:51:39 +0000 (08:51 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #79396: DateTime hour incorrect during DST jump forward
Nate Brunette [Wed, 18 Mar 2020 20:04:46 +0000 (15:04 -0500)]
Fix #79396: DateTime hour incorrect during DST jump forward
When you attempt to set the time to a non-existent time occuring during
a DST jump forward, the hour does not move forward correctly.
Dmitry Stogov [Wed, 18 Mar 2020 20:56:03 +0000 (23:56 +0300)]
JIT for ZEND_CHECK_FUNC_ARG
Máté Kocsis [Mon, 24 Feb 2020 19:19:20 +0000 (20:19 +0100)]
Improve argument error messages in ext/standard
Closes GH-5198
Dmitry Stogov [Wed, 18 Mar 2020 18:19:31 +0000 (21:19 +0300)]
Eliminate run-time check
Christoph M. Becker [Wed, 18 Mar 2020 16:01:30 +0000 (17:01 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Improve FFI test suite for Windows
Christoph M. Becker [Fri, 13 Mar 2020 13:09:53 +0000 (14:09 +0100)]
Improve FFI test suite for Windows
We add Windows support to four existing test cases, extract some useful
utility functions, and use them to simplify further test cases.
We also remove the Windows specific code from preload.inc, since
preloading isn't supported on Windows anyway.
Nikita Popov [Wed, 18 Mar 2020 15:29:09 +0000 (16:29 +0100)]
Improve build instructions in README
Provide enough information to get a build going without hunting
down packages.
If someone wants to add info for macos or other distros, that
would probably be nice as well.
Nikita Popov [Wed, 18 Mar 2020 15:00:23 +0000 (16:00 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Clarify session.cookie_samesite="None"
Nikita Popov [Wed, 18 Mar 2020 15:00:05 +0000 (16:00 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Clarify session.cookie_samesite="None"
Nikita Popov [Wed, 18 Mar 2020 14:59:30 +0000 (15:59 +0100)]
Clarify session.cookie_samesite="None"
Dmitry Stogov [Wed, 18 Mar 2020 14:20:40 +0000 (17:20 +0300)]
Improved JIT for BIND_GLOBAL
Nikita Popov [Wed, 18 Mar 2020 13:52:22 +0000 (14:52 +0100)]
Revert "Fetch for read in nested property assignments"
This reverts commit
bb43a3822e42dbd15b1d416a166549d3980b379a .
After thinking about this a bit more, this is now going to be
a complete solution for the "readonly properties" case, for example:
unset($foo->readOnly->bar);
should also be legal and
$foo->readOnly['bar'] = 42;
should also be legal if $foo->readOnly is not an array but an
ArrayAccess object.
I think it may be better to distinguish better on the BP_VAR flag
level. Reverting for now.
Remi Collet [Wed, 18 Mar 2020 13:09:50 +0000 (14:09 +0100)]
bump zp to 1.18.1 + doc
Remi Collet [Wed, 18 Mar 2020 10:55:16 +0000 (11:55 +0100)]
Fix bug #77960 add compr. /encr. options for ZipArchive::addGlob and ZipArchive::addPattern
options parameter now accepts:
- comp_method
- comp_flags
- enc_method
- enc_password
Nikita Popov [Tue, 10 Mar 2020 09:50:17 +0000 (10:50 +0100)]
Fetch for read in nested property assignments
$a->b->c = 'd';
is now compiled the same way as
$b = $a->b;
$b->c = 'd';
That is, we perform a read fetch on $a->b, rather than a write
fetch.
This is possible, because PHP 8 removed auto-vivification support
for objects, so $a->b->c = 'd' may no longer modify $a->b proper
(i.e. not counting interior mutability of the object).
Closes GH-5250.
Nikita Popov [Wed, 18 Mar 2020 10:46:37 +0000 (11:46 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Make bug52820.phpt more robust
Explicitly start mysql
Use "set -e" in some pipeline steps
Nikita Popov [Wed, 18 Mar 2020 09:25:38 +0000 (10:25 +0100)]
Make bug52820.phpt more robust
Use a more robust error condition...
Nikita Popov [Wed, 18 Mar 2020 09:15:05 +0000 (10:15 +0100)]
Explicitly start mysql
Nikita Popov [Wed, 18 Mar 2020 09:11:15 +0000 (10:11 +0100)]
Use "set -e" in some pipeline steps
Nikita Popov [Wed, 18 Mar 2020 08:56:23 +0000 (09:56 +0100)]
Use different scratch register in read_obj
We already use r0 to hold the zval.
Nikita Popov [Wed, 18 Mar 2020 08:56:07 +0000 (09:56 +0100)]
Explicitly pass scratch register to SAVE_VALID_OPLINE
Dmitry Stogov [Tue, 17 Mar 2020 22:40:41 +0000 (01:40 +0300)]
Result of ASSIGN may be different from the assigned value when LHS is a typed reference
Dmitry Stogov [Tue, 17 Mar 2020 15:10:27 +0000 (18:10 +0300)]
Use zend_fetch_arg_info_type()
Dmitry Stogov [Tue, 17 Mar 2020 14:55:34 +0000 (17:55 +0300)]
Use _const_op_type() for converting constant into type info
Nikita Popov [Tue, 17 Mar 2020 14:41:47 +0000 (15:41 +0100)]
Improve type inference
After thinking about this a bit more, the code here was too
conservative. We know that everything but an object is going to
throw, so it's sufficient to restrict the type to MAY_BE_OBJECT.
The change in the test is weird but not incorrect, because it
operates on empty inferred types, in which case the code must be
dead (which it is). We should probably add a more explicit removal
of code working on empty types.
Nikita Popov [Tue, 17 Mar 2020 14:23:52 +0000 (15:23 +0100)]
Clean up a few more places
Nikita Popov [Tue, 17 Mar 2020 13:53:13 +0000 (14:53 +0100)]
Remove object auto-vivification leftovers in type-inference
undef/null/false no longer get promoted to object in PHP 8.
In fact, we may drop the SSA var defs outside RC inference mode now.
Christoph M. Becker [Tue, 17 Mar 2020 12:58:17 +0000 (13:58 +0100)]
Drop support for iconv without proper errno setting
It is hard to impossible to work around iconv() implementations which
do not properly set errno according to POSIX. We therefore do no
longer allow to build against such iconv() implementations.
Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com>
Dmitry Stogov [Tue, 17 Mar 2020 12:45:54 +0000 (15:45 +0300)]
Improved JIT for ZEND_ASSIGN
Nikita Popov [Tue, 17 Mar 2020 11:08:46 +0000 (12:08 +0100)]
Fix typos
Remi Collet [Tue, 17 Mar 2020 10:29:20 +0000 (11:29 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
bump verison to 7.2.30-dev
Remi Collet [Tue, 17 Mar 2020 10:29:03 +0000 (11:29 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
bump verison to 7.2.30-dev
Remi Collet [Tue, 17 Mar 2020 10:28:47 +0000 (11:28 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
bump verison to 7.2.30-dev
Remi Collet [Tue, 17 Mar 2020 10:28:34 +0000 (11:28 +0100)]
bump verison to 7.2.30-dev
Christoph M. Becker [Tue, 17 Mar 2020 10:15:48 +0000 (11:15 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix NEWS
Christoph M. Becker [Tue, 17 Mar 2020 10:11:15 +0000 (11:11 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix NEWS
Christoph M. Becker [Tue, 17 Mar 2020 10:08:45 +0000 (11:08 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix NEWS
Christoph M. Becker [Tue, 17 Mar 2020 10:04:24 +0000 (11:04 +0100)]
Fix NEWS
Christoph M. Becker [Tue, 17 Mar 2020 10:00:48 +0000 (11:00 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
Christoph M. Becker [Tue, 17 Mar 2020 09:58:58 +0000 (10:58 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
Christoph M. Becker [Tue, 17 Mar 2020 09:56:47 +0000 (10:56 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
Christoph M. Becker [Tue, 17 Mar 2020 09:33:28 +0000 (10:33 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
Fix #79283: Segfault in libmagic patch contains a buffer overflow
Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflow
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflow
Christoph M. Becker [Tue, 17 Mar 2020 09:30:57 +0000 (10:30 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
[ci skip] Update NEWS
Fix test
Fix bug #79329 - get_headers should not accept \0
Fixed bug #79282
Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflow
Stanislav Malyshev [Mon, 16 Mar 2020 00:55:28 +0000 (17:55 -0700)]
Fix test
Stanislav Malyshev [Mon, 16 Mar 2020 00:30:44 +0000 (17:30 -0700)]
Fix bug #79329 - get_headers should not accept \0
Stanislav Malyshev [Mon, 16 Mar 2020 00:26:00 +0000 (17:26 -0700)]
Fixed bug #79282
Christoph M. Becker [Mon, 2 Mar 2020 14:26:59 +0000 (15:26 +0100)]
Fix #79283: Segfault in libmagic patch contains a buffer overflow
To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len * 4 + 4`).
Christoph M. Becker [Thu, 12 Mar 2020 12:04:04 +0000 (13:04 +0100)]
Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflow
We make sure that negative values are properly compared.
Stanislav Malyshev [Mon, 16 Mar 2020 02:35:01 +0000 (19:35 -0700)]
[ci skip] Update NEWS
Stanislav Malyshev [Mon, 16 Mar 2020 00:55:28 +0000 (17:55 -0700)]
Fix test
Stanislav Malyshev [Mon, 16 Mar 2020 00:30:44 +0000 (17:30 -0700)]
Fix bug #79329 - get_headers should not accept \0
Stanislav Malyshev [Mon, 16 Mar 2020 00:26:00 +0000 (17:26 -0700)]
Fixed bug #79282
Christoph M. Becker [Mon, 2 Mar 2020 14:26:59 +0000 (15:26 +0100)]
Fix #79283: Segfault in libmagic patch contains a buffer overflow
To solve this, we properly calculate the required string length upfront
instead of allocating an oversized string (`len * 4 + 4`).
Christoph M. Becker [Thu, 12 Mar 2020 12:04:04 +0000 (13:04 +0100)]
Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflow
We make sure that negative values are properly compared.
Stanislav Malyshev [Mon, 16 Mar 2020 02:35:35 +0000 (19:35 -0700)]
[ci skip] Update NEWS
Stanislav Malyshev [Mon, 16 Mar 2020 00:55:28 +0000 (17:55 -0700)]
Fix test
Stanislav Malyshev [Mon, 16 Mar 2020 00:30:44 +0000 (17:30 -0700)]
Fix bug #79329 - get_headers should not accept \0
Stanislav Malyshev [Mon, 16 Mar 2020 00:26:00 +0000 (17:26 -0700)]
Fixed bug #79282
Christoph M. Becker [Thu, 12 Mar 2020 12:04:04 +0000 (13:04 +0100)]
Fix #79371: mb_strtolower (UTF-32LE): stack-buffer-overflow
We make sure that negative values are properly compared.
Dmitry Stogov [Mon, 16 Mar 2020 21:25:47 +0000 (00:25 +0300)]
Store informaton about class
Dmitry Stogov [Mon, 16 Mar 2020 20:08:07 +0000 (23:08 +0300)]
Fixed recording classes of object references
Nikita Popov [Mon, 16 Mar 2020 17:37:01 +0000 (18:37 +0100)]
Fix assertion when (real) is used
And bring back a test for it...
Nikita Popov [Mon, 16 Mar 2020 14:39:02 +0000 (15:39 +0100)]
Slightly deduplicate code
This code is the same in both branches, extract it.
Nikita Popov [Mon, 16 Mar 2020 14:07:59 +0000 (15:07 +0100)]
Remove "safe" argument from ZVAL_PTR_DTOR
This is no longer used
Nikita Popov [Mon, 16 Mar 2020 14:04:50 +0000 (15:04 +0100)]
Fix typos
Nikita Popov [Mon, 16 Mar 2020 12:02:16 +0000 (13:02 +0100)]
Merge EX variants of INFO macros
Nikita Popov [Mon, 16 Mar 2020 11:32:40 +0000 (12:32 +0100)]
Merge EX variants of RANGE macros
Only need to create the ssa_op variable in range inference...
Nikita Popov [Mon, 16 Mar 2020 11:23:55 +0000 (12:23 +0100)]
Merge zend_may_throw(_ex)
Explicitly pass ssa_op in the places that don't do so yet.
Nikita Popov [Mon, 16 Mar 2020 11:01:50 +0000 (12:01 +0100)]
Remove unnecessary cast
Máté Kocsis [Mon, 16 Mar 2020 09:27:48 +0000 (10:27 +0100)]
Fix ZPP of MultipleIterator::detachIterator() and MultipleIterator::containsIterator()
Máté Kocsis [Sat, 14 Mar 2020 19:16:19 +0000 (20:16 +0100)]
Add stubs for SplObjectStorage and MultipleIterator
Closes GH-5267
Máté Kocsis [Sat, 14 Mar 2020 18:26:20 +0000 (19:26 +0100)]
Add stubs for SplHeap and SplPriorityQueue
Closes GH-5266
Philipp Tanlak [Thu, 13 Feb 2020 15:23:01 +0000 (16:23 +0100)]
Add str_contains() function
RFC: https://wiki.php.net/rfc/str_contains
Closes GH-5179.
Nikita Popov [Mon, 16 Mar 2020 09:32:39 +0000 (10:32 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Don't specify ports in socket_export_stream-4.phpt
Nikita Popov [Mon, 16 Mar 2020 09:32:04 +0000 (10:32 +0100)]
Don't specify ports in socket_export_stream-4.phpt
Let the system pick a free port instead...
Stanislav Malyshev [Mon, 16 Mar 2020 02:35:26 +0000 (19:35 -0700)]
[ci skip] Update NEWS
Stanislav Malyshev [Mon, 16 Mar 2020 00:55:28 +0000 (17:55 -0700)]
Fix test
Stanislav Malyshev [Mon, 16 Mar 2020 00:30:44 +0000 (17:30 -0700)]
Fix bug #79329 - get_headers should not accept \0
Stanislav Malyshev [Mon, 16 Mar 2020 00:26:00 +0000 (17:26 -0700)]
Fixed bug #79282