]>
granicus.if.org Git - php/log
Pedro Magalhães [Mon, 18 Feb 2019 19:26:50 +0000 (19:26 +0000)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Implement pcntl_unshare
Pedro Magalhães [Mon, 21 Jan 2019 23:56:43 +0000 (23:56 +0000)]
Implement pcntl_unshare
Peter Kokot [Mon, 18 Feb 2019 17:16:58 +0000 (18:16 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Sync header and footer with the rest of the files
Peter Kokot [Mon, 18 Feb 2019 17:16:07 +0000 (18:16 +0100)]
Sync header and footer with the rest of the files
- Local variables for editors have been removed
- Copyright year ranges can be also simplified
Peter Kokot [Mon, 18 Feb 2019 16:56:38 +0000 (17:56 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix typos in code comments in Zend/ [skip ci]
Tyson Andre [Mon, 18 Feb 2019 16:35:35 +0000 (11:35 -0500)]
Fix typos in code comments in Zend/ [skip ci]
Nikita Popov [Mon, 18 Feb 2019 16:51:41 +0000 (17:51 +0100)]
Merge branch 'PHP-7.4'
Tyson Andre [Mon, 18 Feb 2019 03:38:18 +0000 (22:38 -0500)]
Fix arginfo for tidy's global functions
See https://secure.php.net/tidy_getopt , etc.
I can't find any other obvious incorrect reflection.
Tyson Andre [Mon, 18 Feb 2019 16:14:22 +0000 (11:14 -0500)]
Fix typos in code comments [skip ci]
Tyson Andre [Mon, 18 Feb 2019 16:14:42 +0000 (11:14 -0500)]
Fix a typo in the error messages for FFI [skip ci]
Dmitry Stogov [Mon, 18 Feb 2019 15:12:10 +0000 (18:12 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed bug #77632 (FFI Segfaults When Called With Variadics)
Dmitry Stogov [Mon, 18 Feb 2019 15:11:55 +0000 (18:11 +0300)]
Fixed bug #77632 (FFI Segfaults When Called With Variadics)
Dmitry Stogov [Mon, 18 Feb 2019 14:53:43 +0000 (17:53 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Use "quick" macro variants for known argument numbers
Dmitry Stogov [Mon, 18 Feb 2019 14:52:33 +0000 (17:52 +0300)]
Use "quick" macro variants for known argument numbers
Nikita Popov [Mon, 18 Feb 2019 14:31:15 +0000 (15:31 +0100)]
Merge branch 'PHP-7.4'
Andrea Faulds [Sun, 17 Feb 2019 18:47:22 +0000 (19:47 +0100)]
run-tests.php: experimental parallel testing support
Nikita Popov [Mon, 18 Feb 2019 13:04:36 +0000 (14:04 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 18 Feb 2019 13:04:30 +0000 (14:04 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 18 Feb 2019 13:04:15 +0000 (14:04 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Mon, 18 Feb 2019 13:01:45 +0000 (14:01 +0100)]
Make MADV_HUGEPAGE conditional on USE_ZEND_ALLOC_HUGE_PAGES
There have been multiple reports of large slowdowns due to the
use of MADV_HUGEPAGE, so make it conditional on
USE_ZEND_ALLOC_HUGE_PAGES, just like MAP_HUGETLB already is.
Nikita Popov [Mon, 18 Feb 2019 12:58:40 +0000 (13:58 +0100)]
Merge branch 'PHP-7.4'
Dmitry Stogov [Mon, 18 Feb 2019 12:46:24 +0000 (13:46 +0100)]
Fixed bug #77633
Add a new class flag to inherit get_iterator() when implementing
the Iterator/IteratorAggregate interfaces and use it for
ArrayIterator.
Nikita Popov [Mon, 18 Feb 2019 11:08:48 +0000 (12:08 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 14 Feb 2019 16:25:13 +0000 (17:25 +0100)]
Use mremap in zend_mm_chunk_extend if available
As suggested by https://twitter.com/grsecurity. This saves an
mmap+munmap cycle in case the mapping cannot be extended in-place.
Dmitry Stogov [Mon, 18 Feb 2019 10:48:06 +0000 (13:48 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed use-after-free during preloading, when q class with unresolved constant uses a preloaded trait.
Dmitry Stogov [Mon, 18 Feb 2019 10:46:13 +0000 (13:46 +0300)]
Fixed use-after-free during preloading, when q class with unresolved constant uses a preloaded trait.
Nikita Popov [Mon, 18 Feb 2019 10:17:45 +0000 (11:17 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 18 Feb 2019 10:15:32 +0000 (11:15 +0100)]
Release constant names during preloading
Nikita Popov [Mon, 18 Feb 2019 08:46:17 +0000 (09:46 +0100)]
Don't suppress errors during in preload testing
Nikita Popov [Mon, 18 Feb 2019 09:44:50 +0000 (10:44 +0100)]
Don't catch opcache_compile_file failures during preloading
Compiler failures are not side-effect free, they may leave behind
parts of the file that were successfully compiled before the
failure occurred. The preloading code is not prepared to deal with
this.
Nikita Popov [Mon, 18 Feb 2019 08:56:39 +0000 (09:56 +0100)]
Handle exception patterns in bless_tests.php
Peter Kokot [Sun, 17 Feb 2019 19:23:48 +0000 (20:23 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Test the warning for giving full path to dl()
Tom Van Herreweghe [Sun, 17 Feb 2019 19:22:23 +0000 (20:22 +0100)]
Test the warning for giving full path to dl()
Peter Kokot [Sun, 17 Feb 2019 18:44:36 +0000 (19:44 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Tests for XMLWriter write cdata and raw
MarkBaker [Tue, 10 Oct 2017 19:17:18 +0000 (20:17 +0100)]
Tests for XMLWriter write cdata and raw
Peter Kokot [Sun, 17 Feb 2019 18:36:13 +0000 (19:36 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
SplDoublyLinkedList Iterating a DLL by reference shouldn't be permitted
MarkBaker [Sat, 7 Oct 2017 12:06:18 +0000 (13:06 +0100)]
SplDoublyLinkedList Iterating a DLL by reference shouldn't be permitted
Peter Kokot [Sun, 17 Feb 2019 18:24:02 +0000 (19:24 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Range of new tests for xmlreader functionality and exceptions/errors
MarkBaker [Thu, 5 Oct 2017 23:46:59 +0000 (00:46 +0100)]
Range of new tests for xmlreader functionality and exceptions/errors
Peter Kokot [Sat, 16 Feb 2019 20:49:58 +0000 (21:49 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove unused --copy option from the makedist
Peter Kokot [Sat, 16 Feb 2019 20:48:45 +0000 (21:48 +0100)]
Remove unused --copy option from the makedist
The --copy option was once used with Automake. It has been
removed via
128119b9abf3446b3867ed6d6bf1503a54bf45ea .
Peter Kokot [Sat, 16 Feb 2019 15:59:31 +0000 (16:59 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Move some scripts from root directory to scripts/dev/
Peter Kokot [Sat, 6 Oct 2018 19:39:29 +0000 (21:39 +0200)]
Move some scripts from root directory to scripts/dev/
At the time of this commit, there is a dedicated folder for development
related tools and such scripts might fit better there to not bloat the
project root directory too much.
Move snapshot to scripts/dev/snapshot
Andrea Faulds [Sat, 16 Feb 2019 00:54:46 +0000 (01:54 +0100)]
Merge branch 'PHP-7.4'
Andrea Faulds [Sat, 16 Feb 2019 00:54:16 +0000 (01:54 +0100)]
run-tests.php: fix all tab-space indentation inconsistency
Andrea Faulds [Sat, 16 Feb 2019 00:06:42 +0000 (01:06 +0100)]
Merge branch 'PHP-7.4'
Andrea Faulds [Sat, 16 Feb 2019 00:05:04 +0000 (01:05 +0100)]
run-tests.php: move all top-level code into a function
Prerequisite for parallelised testing:
https://github.com/php/php-src/pull/2822
Quoth Nikita @
https://github.com/php/php-src/pull/3789#issuecomment-
462724550 :
> @hikari-no-yume Please feel free to directly commit the first commit
> (to PHP-7.4). That's probably a big and unnecessary source of
> conflicts, and makes reviewing harder as well.
Christoph M. Becker [Fri, 15 Feb 2019 17:57:59 +0000 (18:57 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #77626: Persistence confusion in php_com_import_typelib()
Christoph M. Becker [Fri, 15 Feb 2019 17:57:17 +0000 (18:57 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #77626: Persistence confusion in php_com_import_typelib()
Christoph M. Becker [Fri, 15 Feb 2019 17:50:13 +0000 (18:50 +0100)]
Fix #77626: Persistence confusion in php_com_import_typelib()
We apply only the most minimal fix here, and will cater to the
unnecessary re-allocation for PHP-7.4.
We don't need to add a regression test, since bug39606.phpt and
bug77621.phpt already show the misbehavior.
Nikita Popov [Fri, 15 Feb 2019 16:53:27 +0000 (17:53 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 16:50:40 +0000 (17:50 +0100)]
Link anonymous classes during preloading
Nikita Popov [Fri, 15 Feb 2019 16:37:47 +0000 (17:37 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 16:36:40 +0000 (17:36 +0100)]
Don't assume that all includes have been executed
Nikita Popov [Fri, 15 Feb 2019 16:03:57 +0000 (17:03 +0100)]
Set filename & lineno information for preload inheritance error
Nikita Popov [Fri, 15 Feb 2019 15:56:32 +0000 (16:56 +0100)]
Handle bailouts during preload linking
Nikita Popov [Fri, 15 Feb 2019 15:37:19 +0000 (16:37 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 15:34:32 +0000 (16:34 +0100)]
Fix preload auto globals handling
We need to compute the auto globals mask before EG(symbol_table)
is cleaned out.
Christoph M. Becker [Fri, 15 Feb 2019 15:25:15 +0000 (16:25 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Deprecate marking typelibs to load constants case-insensitively
Christoph M. Becker [Fri, 15 Feb 2019 15:20:02 +0000 (16:20 +0100)]
Deprecate marking typelibs to load constants case-insensitively
This is an amendment to commit
fae2246 [1] which missed this opportunity
to still introduce case-insensitive constants without a deprecation
warning.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=
fae22461f95dfe8153fb74a53b9c5daeec47387f >
Dmitry Stogov [Fri, 15 Feb 2019 14:52:59 +0000 (17:52 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Avoid useless code duplication, because of unused specialization
Dmitry Stogov [Fri, 15 Feb 2019 14:49:39 +0000 (17:49 +0300)]
Avoid useless code duplication, because of unused specialization
Christoph M. Becker [Fri, 15 Feb 2019 14:08:41 +0000 (15:08 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Unify clone method error message
rjhdby [Fri, 15 Feb 2019 10:32:57 +0000 (13:32 +0300)]
Unify clone method error message
Dmitry Stogov [Fri, 15 Feb 2019 14:03:49 +0000 (17:03 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Reduce slow code size
Dmitry Stogov [Fri, 15 Feb 2019 14:03:04 +0000 (17:03 +0300)]
Reduce slow code size
Nikita Popov [Fri, 15 Feb 2019 13:43:55 +0000 (14:43 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 12:42:37 +0000 (13:42 +0100)]
Avoid uninitialized entries in properties_info_table
Also don't place it into xlat, there's only ever one user.
Christoph M. Becker [Fri, 15 Feb 2019 12:08:31 +0000 (13:08 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Deprecate case-insensitive constants via typelib import
Christoph M. Becker [Thu, 14 Feb 2019 17:34:47 +0000 (18:34 +0100)]
Deprecate case-insensitive constants via typelib import
As of PHP 7.3.0, case-insensitive constants are deprecated. We catch
up on this with regard to ext/com_dotnet, which allows to import
constants from typelibs, by triggering a deprecation notice whenever
`com_load_typelib()` is called with `$case_sensitive` being `false`,
and whenever `com.autoregister_casesensitive` is set to `false`,
regardless of whether there are actually constants in the typelib which
would be imported.
Nikita Popov [Fri, 15 Feb 2019 12:04:24 +0000 (13:04 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 12:03:46 +0000 (13:03 +0100)]
Suppress zend_throw_error during preload constant resolution
Related to bug #77615.
Nikita Popov [Fri, 15 Feb 2019 11:41:52 +0000 (12:41 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 11:30:36 +0000 (12:30 +0100)]
Add preloading support for typed properties
During preloading, try to resolve all property types to CEs. Add a
flag that tracks this. If not all property types can be resolved,
then the class is not eligible for preloading.
Nikita Popov [Fri, 15 Feb 2019 10:28:14 +0000 (11:28 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 10:23:23 +0000 (11:23 +0100)]
Add a --preload testing mode to run-tests.php
Not intended for general use, it has many false positives.
Nikita Popov [Fri, 15 Feb 2019 10:20:28 +0000 (11:20 +0100)]
Assign (un)serialize_func during compilation
This avoids writing this cache at runtime, which is illegal if
preloading is used.
Not every serialize/unserialize function actually belongs to the
Serializable interface, but I think it's not a problem to assign
these anyway -- whether they are used ultimately depends on whether
Serializable is implemented.
Alternatively it might make sense to just drop these entirely. I
don't think this is performance critical functionality.
Nikita Popov [Fri, 15 Feb 2019 09:28:13 +0000 (10:28 +0100)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 15 Feb 2019 09:26:46 +0000 (10:26 +0100)]
properties_info_table may be in arena or shm
For immutable classes it should be shm instead of in arena.
Related to bug #77615.
Christoph M. Becker [Thu, 14 Feb 2019 23:39:40 +0000 (00:39 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #77621: Already defined constants are not properly reported
Christoph M. Becker [Thu, 14 Feb 2019 23:39:10 +0000 (00:39 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #77621: Already defined constants are not properly reported
Christoph M. Becker [Thu, 14 Feb 2019 23:37:39 +0000 (00:37 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fix #77621: Already defined constants are not properly reported
Christoph M. Becker [Thu, 14 Feb 2019 23:35:21 +0000 (00:35 +0100)]
Fix #77621: Already defined constants are not properly reported
We must not check uninitialized values (i.e. `c.value`), and we have to
use proper types for printf-style formats (i.e. `char *` instead of
`zend_string *`).
Peter Kokot [Thu, 14 Feb 2019 21:30:03 +0000 (22:30 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
gd imageloadfont test while reading header
BlackEagle [Mon, 20 Nov 2017 22:17:48 +0000 (23:17 +0100)]
gd imageloadfont test while reading header
Cover error when the header of an gd font loading is interrupted by end
of file.
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Peter Kokot [Thu, 14 Feb 2019 19:50:12 +0000 (20:50 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Add test to function posix_getlogin()
Rodrigo Prado de Jesus [Wed, 15 Nov 2017 03:08:38 +0000 (01:08 -0200)]
Add test to function posix_getlogin()
Increased the coverage lines 587-595 in file ext/posix/posix.c
User Groups: PHPVale PHPSP PHPDF PHPWomenBR
Hangout presented by #PHPTestFestBrasil on 2017-11-14
https://www.youtube.com/watch?v=bBWkzZEadNo
Peter Kokot [Thu, 14 Feb 2019 19:37:47 +0000 (20:37 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Create posix_getpwnam_basic_01.phpt
Rodrigo Prado [Thu, 9 Nov 2017 22:20:09 +0000 (20:20 -0200)]
Create posix_getpwnam_basic_01.phpt
User Group: PHPSP #phptestfestbrasil
Peter Kokot [Thu, 14 Feb 2019 19:28:35 +0000 (20:28 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Add basic test for posix getgrnam
Riccardo Magliocchetti [Wed, 20 Dec 2017 19:59:14 +0000 (20:59 +0100)]
Add basic test for posix getgrnam
Peter Kokot [Thu, 14 Feb 2019 19:12:15 +0000 (20:12 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Small change in the test to pass
Rodrigo Prado [Thu, 14 Feb 2019 19:12:00 +0000 (20:12 +0100)]
Small change in the test to pass
This test was not passing because the VM called by travis CI is slow, see below the failure:
http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tests&file=ext%2Ffileinfo%2Ftests%2Fcve-2014-3538-mb.phpt
User Group: PHPSP #phptestfestbrasil
http://phpsp.org.br/
Peter Kokot [Thu, 14 Feb 2019 19:04:16 +0000 (20:04 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Added basic stream_filter_register test
Robrecht Plaisier [Mon, 27 Nov 2017 18:53:43 +0000 (19:53 +0100)]
Added basic stream_filter_register test
Peter Kokot [Thu, 14 Feb 2019 18:52:31 +0000 (19:52 +0100)]
Merge branch 'PHP-7.4'
* PHP-7.4:
use local resources instead remote
rjhdby [Thu, 14 Feb 2019 11:00:57 +0000 (14:00 +0300)]
use local resources instead remote
Nikita Popov [Thu, 14 Feb 2019 16:06:56 +0000 (17:06 +0100)]
Merge branch 'PHP-7.4'
[ci skip]
Fabien Villepinte [Thu, 14 Feb 2019 15:10:29 +0000 (16:10 +0100)]
Remove outdated pgsql README
[ci skip]
Fabien Villepinte [Thu, 14 Feb 2019 11:54:35 +0000 (12:54 +0100)]
Fixed bug #77619
Fix MultipleIterator::__construct() arginfo