]>
granicus.if.org Git - php/log
Nikita Popov [Wed, 29 May 2019 15:07:12 +0000 (17:07 +0200)]
Run sapi tests when running all tests
Nikita Popov [Wed, 29 May 2019 15:05:01 +0000 (17:05 +0200)]
Update phpdbg oplog test
Nikita Popov [Wed, 29 May 2019 15:02:36 +0000 (17:02 +0200)]
Update cli reflection test
Nikita Popov [Wed, 29 May 2019 15:00:12 +0000 (17:00 +0200)]
Remove two zpp tests in sapi/cli/tests
These fail on master -- apparently we're not running these tests...
Nikita Popov [Wed, 29 May 2019 14:48:28 +0000 (16:48 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 29 May 2019 14:47:19 +0000 (16:47 +0200)]
SCCP: Fix leak when determining TYPE_CHECK from type info
As TYPE_CHECK is the only opcode where we do something like this,
I'm adding this hack.
Dmitry Stogov [Wed, 29 May 2019 10:58:37 +0000 (13:58 +0300)]
zend_assign_to_variable() optimization
Dmitry Stogov [Wed, 29 May 2019 08:31:46 +0000 (11:31 +0300)]
Mark "cold" functions
Derick Rethans [Wed, 29 May 2019 08:34:10 +0000 (09:34 +0100)]
Bump API numbers
Nikita Popov [Wed, 29 May 2019 07:51:15 +0000 (09:51 +0200)]
Specify get_property_ptr_ptr handler for DatePeriod
This handler is required on 7.4. Just return NULL from it to fall
back to read_property.
Nikita Popov [Wed, 29 May 2019 07:47:54 +0000 (09:47 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 29 May 2019 07:47:43 +0000 (09:47 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Craig Duncan [Tue, 28 May 2019 19:49:14 +0000 (20:49 +0100)]
Add tests for DatePeriod properties
Dmitry Stogov [Wed, 29 May 2019 07:32:30 +0000 (10:32 +0300)]
zend_do_fcall_overloaded() doesn't have to be exported
Christoph M. Becker [Wed, 29 May 2019 07:27:46 +0000 (09:27 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Update NEWS for 7.3.6
Christoph M. Becker [Wed, 29 May 2019 07:27:23 +0000 (09:27 +0200)]
Update NEWS for 7.3.6
Gabriel Caruso [Wed, 29 May 2019 01:48:31 +0000 (22:48 -0300)]
Remove unused variable
Remi Collet [Wed, 29 May 2019 06:53:59 +0000 (08:53 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
add NEWS entries for sec fix
Remi Collet [Wed, 29 May 2019 06:53:42 +0000 (08:53 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
add NEWS entries for sec fix
Remi Collet [Wed, 29 May 2019 06:53:23 +0000 (08:53 +0200)]
add NEWS entries for sec fix
Joe Watkins [Wed, 29 May 2019 06:30:55 +0000 (08:30 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
disabled functions must not have return type
Restore the execute bit for run-tests.php
Joe Watkins [Wed, 29 May 2019 06:30:41 +0000 (08:30 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
disabled functions must not have return type
Joe Watkins [Wed, 29 May 2019 06:30:08 +0000 (08:30 +0200)]
disabled functions must not have return type
Anatol Belski [Wed, 29 May 2019 00:40:09 +0000 (02:40 +0200)]
Fix conditional compilation
The new symbols are shared and don't need to depend on the availability
of __builtin_constant_p.
Anatol Belski [Wed, 29 May 2019 00:29:02 +0000 (02:29 +0200)]
These macros should not expect any argument
Dmitry Stogov [Tue, 28 May 2019 22:43:27 +0000 (01:43 +0300)]
Avoid cold code duplication
Craig Duncan [Tue, 28 May 2019 20:51:26 +0000 (21:51 +0100)]
Restore the execute bit for run-tests.php
It looks like this was accidentally removed in
03f15f705ad30ce2dde7f7b2ab087a132b859ba0
Dmitry Stogov [Tue, 28 May 2019 17:10:02 +0000 (20:10 +0300)]
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
Nikita Popov [Tue, 28 May 2019 14:41:17 +0000 (16:41 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 28 May 2019 14:41:08 +0000 (16:41 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 28 May 2019 14:39:49 +0000 (16:39 +0200)]
Fix type inference of SEND_UNPACK with empty array
An empty array will not be turned into an array of references.
This violated the invariant than an array has values iff it has
keys.
Nikita Popov [Tue, 28 May 2019 14:14:46 +0000 (16:14 +0200)]
SCCP: Fix handling of ASSIGN_OBJ_REF
The generic BOT handling is not away of OP_DATA, so need to handle
this opcode before we get to that.
Dmitry Stogov [Tue, 28 May 2019 14:08:35 +0000 (17:08 +0300)]
Avoid usage of internal get/set object handlers. They are going to be removed in PHP-8.
Scalar FFI values now should be accessed through special "cdata" property.
$x = FFI::new("int");
$x = 42;
should be changed into
$x = FFI::new("int");
$x->cdata = 42;
Nikita Popov [Tue, 28 May 2019 13:45:19 +0000 (15:45 +0200)]
SCCP: Don't perform partial object propagation for typed props
Dmitry Stogov [Tue, 28 May 2019 10:35:00 +0000 (13:35 +0300)]
Avoid double copying
Dik Takken [Thu, 16 May 2019 20:08:08 +0000 (22:08 +0200)]
Allow array_merge() / array_merge_recursive() without arguments
This allows writing
array_merge(...$arrays)
instead of
array_merge([], ...$arrays)
and is in line with similar changes to array_push() and array_unshift()
in PHP 7.3.
Closes GH-4175.
Dmitry Stogov [Tue, 28 May 2019 08:04:13 +0000 (11:04 +0300)]
Put phpinfo() related code into cold code segment
Joe Watkins [Tue, 28 May 2019 07:54:47 +0000 (09:54 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
bump version after release
Joe Watkins [Tue, 28 May 2019 07:54:15 +0000 (09:54 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
bump version after release
Joe Watkins [Tue, 28 May 2019 07:53:32 +0000 (09:53 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
bump version after release
Joe Watkins [Tue, 28 May 2019 07:52:52 +0000 (09:52 +0200)]
bump version after release
Stanislav Malyshev [Tue, 28 May 2019 04:36:10 +0000 (21:36 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
Stanislav Malyshev [Tue, 28 May 2019 04:36:05 +0000 (21:36 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
Stanislav Malyshev [Tue, 28 May 2019 04:36:00 +0000 (21:36 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
Stanislav Malyshev [Tue, 28 May 2019 01:04:00 +0000 (18:04 -0700)]
Fix bug #77967 - Bypassing open_basedir restrictions via file uris
Stanislav Malyshev [Tue, 28 May 2019 00:28:29 +0000 (17:28 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
Stanislav Malyshev [Tue, 28 May 2019 00:28:25 +0000 (17:28 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
Stanislav Malyshev [Tue, 28 May 2019 00:28:20 +0000 (17:28 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
Stanislav Malyshev [Tue, 28 May 2019 00:16:29 +0000 (17:16 -0700)]
Fix bug #77988 - heap-buffer-overflow on php_jpg_get16
Stanislav Malyshev [Tue, 28 May 2019 00:21:28 +0000 (17:21 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix function name
Stanislav Malyshev [Tue, 28 May 2019 00:21:23 +0000 (17:21 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix function name
Stanislav Malyshev [Tue, 28 May 2019 00:20:56 +0000 (17:20 -0700)]
Fix function name
Stanislav Malyshev [Mon, 27 May 2019 23:49:31 +0000 (16:49 -0700)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973: Uninitialized read in gdImageCreateFromXbm
Stanislav Malyshev [Mon, 27 May 2019 23:49:25 +0000 (16:49 -0700)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973: Uninitialized read in gdImageCreateFromXbm
Stanislav Malyshev [Mon, 27 May 2019 23:49:19 +0000 (16:49 -0700)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Update NEWS
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Fix #77973: Uninitialized read in gdImageCreateFromXbm
Stanislav Malyshev [Mon, 27 May 2019 23:48:32 +0000 (16:48 -0700)]
Update NEWS
Stanislav Malyshev [Mon, 27 May 2019 23:32:42 +0000 (16:32 -0700)]
Fix bug #78069 - Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
Christoph M. Becker [Mon, 6 May 2019 08:18:51 +0000 (10:18 +0200)]
Fix #77973: Uninitialized read in gdImageCreateFromXbm
We have to ensure that `sscanf()` does indeed read a hex value here,
and bail out otherwise.
Christoph M. Becker [Mon, 27 May 2019 14:20:50 +0000 (16:20 +0200)]
Prevent parallel test conflicts
These ports are already used by another test, so we change them.
Nikita Popov [Mon, 27 May 2019 15:44:11 +0000 (17:44 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 27 May 2019 15:42:50 +0000 (17:42 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Michael Maroszek [Mon, 27 May 2019 15:42:20 +0000 (17:42 +0200)]
Fixed bug #76345
Nikita Popov [Mon, 27 May 2019 15:11:44 +0000 (17:11 +0200)]
BIND_STATIC of implicit binding may be undef
Even though we don't need it at runtime, add the BIND_IMPLICIT
flag to BIND_STATIC as well, so we can distinguish this case in
type inference.
This fixes a JIT miscompile in arrow_functions/002.phpt.
Nikita Popov [Mon, 27 May 2019 14:15:03 +0000 (16:15 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 27 May 2019 14:09:58 +0000 (16:09 +0200)]
Func info: Fix calls to zero-arg varargs
The num_args does not include variadics, so a "zero-arg" function
may accept additional arguments through that. No functions seem
to be affected right now, but they will be after #4175.
Nikita Popov [Mon, 27 May 2019 14:14:16 +0000 (16:14 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 27 May 2019 14:09:58 +0000 (16:09 +0200)]
Func info: Fix calls to zero-arg varargs
The num_args does not include variadics, so a "zero-arg" function
may accept additional arguments through that. No functions seem
to be affected right now, but they will be after #4175.
Dmitry Stogov [Mon, 27 May 2019 13:20:20 +0000 (16:20 +0300)]
Enable pcre valgrind support only in DEBUG build (it affects performance)
Hugh McMaster [Sun, 26 May 2019 09:30:54 +0000 (19:30 +1000)]
ext/xml: Use PKG_CHECK_MODULES to detect the Expat library
Dmitry Stogov [Mon, 27 May 2019 10:37:19 +0000 (13:37 +0300)]
Align .text segment for better huge pages usage
Gabriel Caruso [Mon, 27 May 2019 01:30:05 +0000 (22:30 -0300)]
Make more tests run on Windows
Nikita Popov [Fri, 24 May 2019 12:41:38 +0000 (14:41 +0200)]
Accept flags argument in zend_lookup_class_ex()
Instead of a single boolean, so we have space for extension here.
Jakub Zelenka [Sun, 26 May 2019 17:51:10 +0000 (18:51 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Jakub Zelenka [Sun, 26 May 2019 17:49:52 +0000 (18:49 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
Jakub Zelenka [Sun, 26 May 2019 17:47:22 +0000 (18:47 +0100)]
Add fpmi to the opcache supported sapis
Anatol Belski [Sat, 25 May 2019 09:33:39 +0000 (11:33 +0200)]
Upgrade bundled PCRE2 to 10.33
Hugh McMaster [Thu, 23 May 2019 13:01:04 +0000 (23:01 +1000)]
Use PKG_CHECK_MODULES to detect valgrind, and share build config with pcre
Peter Kokot [Wed, 8 May 2019 21:32:20 +0000 (23:32 +0200)]
Define minimum required libffi version
Nikita Popov [Fri, 24 May 2019 08:58:33 +0000 (10:58 +0200)]
Add UPGRADING/NEWS entries
Nikita Popov [Fri, 24 May 2019 07:49:44 +0000 (09:49 +0200)]
Deprecate use of parent where no parent exists
This deprecation is part of the covariance RFC.
David Carlier [Wed, 22 May 2019 22:04:56 +0000 (00:04 +0200)]
list net/interfaces, trying to get the error on windows when possible
Nikita Popov [Wed, 8 May 2019 10:30:16 +0000 (12:30 +0200)]
Implement basic variance support
This is a minimal variance implementation: It does not support any
cyclic type dependencies. Additionally the preloading requirements
are much more restrictive than necessary. Hopefully we can relax
these in the future.
Nikita Popov [Thu, 9 May 2019 08:41:06 +0000 (10:41 +0200)]
Avoid early-binding on unresolved types
Fixes bug #76451, and more importantly lays necessary groundwork for
covariant/contravariant types. Bug #76451 is just an edge case, but
once covariance is introduced this will become a common problem instead.
Nikita Popov [Thu, 23 May 2019 11:41:17 +0000 (13:41 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 23 May 2019 10:29:08 +0000 (12:29 +0200)]
Fix bug #77955
Free metadata before freeing the arena. I don't have a repro script,
but the added assertion fails for many existing tests prior to this
change.
Christoph M. Becker [Thu, 23 May 2019 11:09:14 +0000 (13:09 +0200)]
Prevent further potential test conflicts
These tests partially use the same resource names; as a quick-fix we're
marking them all as conflicting.
Joe Watkins [Thu, 23 May 2019 11:09:18 +0000 (13:09 +0200)]
fix notice in run-tests
Christoph M. Becker [Thu, 23 May 2019 09:40:39 +0000 (11:40 +0200)]
Prevent potential test conflict
bug48746_tmp.lnk is also created by bug48746_2.phpt which might clash,
if both are run simultaneouly.
Nikita Popov [Thu, 23 May 2019 09:13:14 +0000 (11:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 23 May 2019 09:12:34 +0000 (11:12 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 23 May 2019 09:11:54 +0000 (11:11 +0200)]
Fixed bug #78038 socket_select with references
Joe Watkins [Thu, 23 May 2019 08:55:25 +0000 (10:55 +0200)]
run-tests improvements:
Add XLEAK section, this is made necessary by the support
for valgrind tools other than memcheck.
XLEAK is to a leaking test what XFAIL is to a failing test.
Tidy up summary a little to exclude Expected Fail and Expected Leak
when there are no expected fail/leaks
Nikita Popov [Wed, 22 May 2019 09:13:28 +0000 (11:13 +0200)]
Forbid use of not fully linked classes
Dmitry Stogov [Thu, 23 May 2019 08:20:46 +0000 (11:20 +0300)]
Fixed double mutex unlock
Nikita Popov [Wed, 15 May 2019 13:27:17 +0000 (15:27 +0200)]
Don't require NO_ESCAPE for partial arrays in SCCP
Dmitry Stogov [Wed, 22 May 2019 21:21:15 +0000 (00:21 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fixed race condition in opcache restart
Dmitry Stogov [Wed, 22 May 2019 21:21:04 +0000 (00:21 +0300)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fixed race condition in opcache restart
Dmitry Stogov [Wed, 22 May 2019 21:20:35 +0000 (00:20 +0300)]
Fixed race condition in opcache restart
Dmitry Stogov [Wed, 22 May 2019 20:00:26 +0000 (23:00 +0300)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fixed dump of constant flags
Dmitry Stogov [Wed, 22 May 2019 19:59:40 +0000 (22:59 +0300)]
Fixed dump of constant flags