]>
granicus.if.org Git - php/log
Nikita Popov [Thu, 21 Feb 2019 14:49:37 +0000 (15:49 +0100)]
Remove use of file resources from string function tests
These tests are pointless (they don't even have anything to do
with resources, they just use get_resource_type() as a peculiar way
to create a string), and cause unnecessary IO dependency.
Nikita Popov [Thu, 21 Feb 2019 14:29:22 +0000 (15:29 +0100)]
Make (v)fprintf tests more robust
By using a separate file for each test. Also drop some unnecessary
SKIPIF checks for file creation. We assume that files can be created in
the test directories all over the place, so don't check for it here.
Nikita Popov [Thu, 21 Feb 2019 12:46:31 +0000 (13:46 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 21 Feb 2019 12:45:25 +0000 (13:45 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Thu, 21 Feb 2019 12:42:47 +0000 (13:42 +0100)]
Fixed bug #77597
The same variable was reused in two nested loops... The test doesn't
fail on 7.2, but I'm fixing this here anyway as the code is clearly
wrong, and probably erroneous in other situations.
Nikita Popov [Thu, 21 Feb 2019 11:19:02 +0000 (12:19 +0100)]
Make zip oo_addglob test more robust
Use a separate directory for the test, so files created in the main
test directory cannot influence it.
Nikita Popov [Thu, 21 Feb 2019 11:13:38 +0000 (12:13 +0100)]
Don't parallelize dba tests
Nikita Popov [Thu, 21 Feb 2019 11:06:48 +0000 (12:06 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Thu, 21 Feb 2019 11:04:49 +0000 (12:04 +0100)]
Fix issue mentioned in #77302
Apparently Serializable::serialize() can return NULL, which is encoded
as N;. As we do not allow back-references to non-object values in
PHP 7.3 we need to make sure that any references are also compiled to
N;.
Joe Watkins [Thu, 21 Feb 2019 07:53:28 +0000 (08:53 +0100)]
zend_get_call_op ignoring compiler flags zend_get_call_op will ignore ZEND_COMPILE_IGNORE_USER_FUNCTIONS and ZEND_COMPILE_IGNORE_USER_FUNCTIONS, breaking the intention of these flags
Nikita Popov [Thu, 21 Feb 2019 10:05:36 +0000 (11:05 +0100)]
Enable parallel tests on AppVeyor
I'll be keeping an eye on spurious failures resulting from this...
Nikita Popov [Thu, 21 Feb 2019 08:35:30 +0000 (09:35 +0100)]
Add special "all" conflict
If a test conflicts with "all", then no other tests may be run in
parallel. This is needed for windows_mb_path tests, which rely on
the console codepage, which is shared across all parallel workers.
Also add support for comments in the CONFLICTS section/file.
Nikita Popov [Thu, 21 Feb 2019 09:59:30 +0000 (10:59 +0100)]
Fixed bug #77643
Resolve property initializers against the correct class, even when
parent slots are reused.
Nikita Popov [Thu, 21 Feb 2019 09:35:59 +0000 (10:35 +0100)]
Print more precise warning for unresolved constants
Dmitry Stogov [Wed, 20 Feb 2019 19:36:51 +0000 (22:36 +0300)]
Reinstall pcntl tick handler on each request (it cleared after the first request).
Peter Kokot [Wed, 20 Feb 2019 19:07:23 +0000 (20:07 +0100)]
[ci skip] Update changelog
Peter Kokot [Tue, 19 Feb 2019 22:42:12 +0000 (23:42 +0100)]
Remove unused PHP_SYS_LFS m4 macro
This was once named as AC_SYS_LFS and today it is not used in current
PHP code base anymore.
Peter Kokot [Tue, 19 Feb 2019 22:34:24 +0000 (23:34 +0100)]
Remove unused PHP_SOLARIS_PIC_WEIRDNESS m4 macro
This has been once used for Solaris systems and has been removed via
827ad656cb2585d2b9a9cc2d3bb021e8edf34365
Peter Kokot [Tue, 19 Feb 2019 22:25:55 +0000 (23:25 +0100)]
Remove unused PHP_TARGET_RDYNAMIC m4 macro
This has been once used with apache sapi. Since PHP 7.0 it is not used
in the PHP anymore.
Peter Kokot [Tue, 19 Feb 2019 22:19:12 +0000 (23:19 +0100)]
Remove unused AM_SET_LIBTOOL_VARIABLE m4 macro
It was once used with Automake and Zend's build files. Call has been
removed via
e1f101d79840e171f1dcfe17f8ae7a3d0be7e89d
Dmitry Stogov [Wed, 20 Feb 2019 15:18:44 +0000 (18:18 +0300)]
Supress memory leak reports
Nikita Popov [Wed, 20 Feb 2019 15:01:15 +0000 (16:01 +0100)]
Don't use uniqid for temporary POST data files
uniqid() is not necessarily unique when multiple testing processes
run in parallel.
Nikita Popov [Wed, 20 Feb 2019 11:57:50 +0000 (12:57 +0100)]
Add a --shuffle mode to run-tests
Makes it easier to find paralellization issues. Of course only works
if the tests aren't order-dependent...
Dmitry Stogov [Wed, 20 Feb 2019 14:10:10 +0000 (17:10 +0300)]
Remember __COMPILER_HALT_OFFSET__(s) in preloaded scripts
Nikita Popov [Wed, 20 Feb 2019 11:45:27 +0000 (12:45 +0100)]
Support passing single file to bless_tests.php
Or a mix of multiple directories/files. Also make the file executable.
Nikita Popov [Wed, 20 Feb 2019 11:38:40 +0000 (12:38 +0100)]
Use PHP_BINARY by default in run-tests.php
You pretty much always want to run with -P, make it the default.
Nikita Popov [Wed, 20 Feb 2019 11:19:01 +0000 (12:19 +0100)]
Enable parallel tests on Travis
I'll keep an eye on spurious failures resulting from this.
Nikita Popov [Wed, 20 Feb 2019 11:12:11 +0000 (12:12 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 20 Feb 2019 11:11:56 +0000 (12:11 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
Abyr Valg [Sat, 9 Feb 2019 09:15:55 +0000 (12:15 +0300)]
OpenSSL: Improve non-blocking eof test
Nikita Popov [Wed, 20 Feb 2019 11:06:02 +0000 (12:06 +0100)]
Make zip oo_addpattern test more robust
Use a separate directory for the tests, so that no other tests can
concurrently create files in the same directory.
Nikita Popov [Wed, 20 Feb 2019 10:53:31 +0000 (11:53 +0100)]
Use "modify" error message for FUNC_ARG fetch as well
Avoid differences based on whether a W or FUNC_ARG fetch is performed.
Nikita Popov [Mon, 18 Feb 2019 15:43:22 +0000 (16:43 +0100)]
Implement fine-grained conflict handling
Tests can specify conflict keys, either in --CONFLICTS-- or
a per-directory CONFLICTS file. Non-conflicting tests may be run
in parallel.
Nikita Popov [Tue, 19 Feb 2019 14:13:11 +0000 (15:13 +0100)]
Make proc_open_bug69900.phpt more robust against parallelization
With multiple workers running this might take more than 1ms. Bump
this up to the same threshold that was already used for CI.
Nikita Popov [Tue, 19 Feb 2019 15:15:01 +0000 (16:15 +0100)]
Make ext/spl/tests/bug42364.phpt more robust
If tests are run in parallel, files may be created and deleted in
the directory. Create a separate directory just for this test to
avoid this dependence.
Dmitry Stogov [Wed, 20 Feb 2019 08:47:19 +0000 (11:47 +0300)]
Disable preloading for sensetive opcache tests
Dmitry Stogov [Wed, 20 Feb 2019 08:35:56 +0000 (11:35 +0300)]
Prevent error reporting during preloading request start-up
Nikita Popov [Wed, 20 Feb 2019 08:31:08 +0000 (09:31 +0100)]
Use zend_parse_parameters_none() in XmlWriter::openMemory()
And fix incorrect uses in tests
Dmitry Stogov [Wed, 20 Feb 2019 07:26:56 +0000 (10:26 +0300)]
Added reference to parser generator
Peter Kokot [Mon, 18 Feb 2019 21:40:56 +0000 (22:40 +0100)]
Fix typo
Peter Kokot [Mon, 18 Feb 2019 21:39:00 +0000 (22:39 +0100)]
Simplify even more - use PHP_VERSION directly
Peter Kokot [Mon, 18 Feb 2019 21:11:12 +0000 (22:11 +0100)]
Bump FFI extension version to PHP_VERSION
This simplifies bumping the FFI extension version.
Christopher Jones [Wed, 20 Feb 2019 00:12:08 +0000 (11:12 +1100)]
Correct skipif use for OCI8 password tests
Christopher Jones [Wed, 20 Feb 2019 00:11:16 +0000 (11:11 +1100)]
Merge branch 'PHP-7.3' into PHP-7.4
Christopher Jones [Wed, 20 Feb 2019 00:11:06 +0000 (11:11 +1100)]
Merge branch 'PHP-7.2' into PHP-7.3
Christopher Jones [Wed, 20 Feb 2019 00:10:57 +0000 (11:10 +1100)]
Correct skipif use for OCI8 password tests
Dmitry Stogov [Tue, 19 Feb 2019 23:35:25 +0000 (02:35 +0300)]
Skip tests f oci8 extension is not loaded
Dmitry Stogov [Tue, 19 Feb 2019 23:33:21 +0000 (02:33 +0300)]
Reorder conditions
Dmitry Stogov [Tue, 19 Feb 2019 23:32:29 +0000 (02:32 +0300)]
Use ZEND_ACC_REUSE_GET_ITERATOR flag instead of run-time class modification
Dmitry Stogov [Tue, 19 Feb 2019 21:06:57 +0000 (00:06 +0300)]
Don't preload tests without --FILE-- section
Dmitry Stogov [Tue, 19 Feb 2019 20:50:17 +0000 (23:50 +0300)]
Order of classes may matter
Dmitry Stogov [Tue, 19 Feb 2019 20:17:38 +0000 (23:17 +0300)]
Don't restrict preloading with "open_basedir" directive.
Peter Kokot [Mon, 18 Feb 2019 17:08:54 +0000 (18:08 +0100)]
Rename non-existing site phpdbg.com to localhost
Joe Watkins [Tue, 19 Feb 2019 16:45:13 +0000 (17:45 +0100)]
begin handlers are currently invoked without access to the arguments being sent, this moves the opcode after SEND
Dmitry Stogov [Tue, 19 Feb 2019 16:22:42 +0000 (19:22 +0300)]
Better new-line handling
Dmitry Stogov [Tue, 19 Feb 2019 16:21:36 +0000 (19:21 +0300)]
Fixed memory leak
Nikita Popov [Tue, 19 Feb 2019 16:11:30 +0000 (17:11 +0100)]
Remove some zpp failure tests
These tests exclusively check zpp failure conditions, so drop them.
Dmitry Stogov [Tue, 19 Feb 2019 15:39:44 +0000 (18:39 +0300)]
Check for USER_FUNCTION
Dmitry Stogov [Tue, 19 Feb 2019 15:09:44 +0000 (18:09 +0300)]
Accurate handling of not preloaded classes
Nikita Popov [Tue, 19 Feb 2019 14:16:16 +0000 (15:16 +0100)]
Avoid port conflicts in stream socket tests
Also drop some useless --CLEAN-- sections.
Nikita Popov [Tue, 19 Feb 2019 14:02:26 +0000 (15:02 +0100)]
Remove spurious + before --CREDITS--
Nikita Popov [Tue, 19 Feb 2019 13:51:33 +0000 (14:51 +0100)]
Avoid file conflicts in mail tests
Nikita Popov [Tue, 19 Feb 2019 13:43:52 +0000 (14:43 +0100)]
Avoid file conflicts in XmlWriter tests
Nikita Popov [Tue, 19 Feb 2019 09:35:27 +0000 (10:35 +0100)]
Avoid port conflicts in ext/sockets tests
Nikita Popov [Mon, 18 Feb 2019 14:36:39 +0000 (15:36 +0100)]
Make parallel run-tests compatible with IO capture tests
Inherit the main stdin/stdout/stderr streams into the worker processes.
We don't talk to workers via these pipes, so there shouldn't be a
problem doing this.
Dmitry Stogov [Tue, 19 Feb 2019 14:16:48 +0000 (17:16 +0300)]
Better line handling
Dmitry Stogov [Tue, 19 Feb 2019 14:09:07 +0000 (17:09 +0300)]
Filter preloading warning messages
Dmitry Stogov [Tue, 19 Feb 2019 13:54:51 +0000 (16:54 +0300)]
Don't try to eliminate requre/include with stream wrappers
Dmitry Stogov [Tue, 19 Feb 2019 13:46:56 +0000 (16:46 +0300)]
Stop PHP in case of fatal error during preloading
Dmitry Stogov [Tue, 19 Feb 2019 12:51:12 +0000 (15:51 +0300)]
ws
Christoph M. Becker [Tue, 19 Feb 2019 12:10:04 +0000 (13:10 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Prepare main branch for PHP 7.3.4
Christoph M. Becker [Tue, 19 Feb 2019 12:06:40 +0000 (13:06 +0100)]
Prepare main branch for PHP 7.3.4
Remi Collet [Tue, 19 Feb 2019 11:47:09 +0000 (12:47 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
bump version to 7.2.17-dev
Remi Collet [Tue, 19 Feb 2019 11:47:00 +0000 (12:47 +0100)]
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
bump version to 7.2.17-dev
Remi Collet [Tue, 19 Feb 2019 11:46:52 +0000 (12:46 +0100)]
bump version to 7.2.17-dev
Nikita Popov [Tue, 19 Feb 2019 09:09:06 +0000 (10:09 +0100)]
Merge remote-tracking branch 'php-src/PHP-7.4' into PHP-7.4
Tyson Andre [Mon, 18 Feb 2019 14:35:45 +0000 (09:35 -0500)]
Fixed bug #77631
Do not include unbound anonymous classes in get_declared_classes().
Note that earlier PHP versions would include the anonymous class in
get_declared_classes(), and return false until the class was bound,
but would not crash.
Joe Watkins [Tue, 19 Feb 2019 08:08:38 +0000 (09:08 +0100)]
ZEND_COMPILE_EXTENDED_INFO split Currently a tool may not decide between debugging and profiling behaviour: We split ZEND_COMPILE_EXTENDED_INFO into ZEND_COMPILE_EXTENDED_FCALL and ZEND_COMPILE_EXTENDED_STMT We define ZEND_COMPILE_EXTENDED_INFO as ZEND_COMPILE_EXTENDED_STMT|ZEND_COMPILE_EXTENDED_FCALL
Tyson Andre [Mon, 18 Feb 2019 16:47:09 +0000 (11:47 -0500)]
Fix ffi test on Windows
Fixes a bug in test added in
5661feb1ef929111ef7765672fcb49813eee86fc , by checking that the
relevant SO exists.
Also adds an additional test that is based on zend_printf, and
should work on both Linux and Windows.
Remi Collet [Tue, 19 Feb 2019 08:54:32 +0000 (09:54 +0100)]
fix build with external libpcre2
Remi Collet [Tue, 19 Feb 2019 08:10:06 +0000 (09:10 +0100)]
use pkg-config for libedit
Remi Collet [Tue, 19 Feb 2019 07:51:56 +0000 (08:51 +0100)]
add readline_list_history with libedit >= 3.1 and mingweditline
BlackEagle [Tue, 19 Feb 2019 02:26:00 +0000 (03:26 +0100)]
gd imageloadfont, verify error while reading header
when reading the header verify we get an error when the header is
invalid.
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Andy McNeice [Tue, 10 Oct 2017 13:51:33 +0000 (13:51 +0000)]
added basic test for UConverter::setSourceEncoding()
Andy McNeice [Tue, 10 Oct 2017 00:15:43 +0000 (00:15 +0000)]
added basic test for UConverter::getDestinationEncoding()
Andy McNeice [Mon, 9 Oct 2017 21:31:46 +0000 (21:31 +0000)]
added basic test for UConverter::getSourceEncoding()
Pedro Magalhães [Mon, 18 Feb 2019 19:58:56 +0000 (19:58 +0000)]
UPGRADING entry for pcntl_unshare [skip ci]
Andrea Faulds [Mon, 18 Feb 2019 19:32:16 +0000 (20:32 +0100)]
run-tests.php: fix typo
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: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
Tyson Andre [Mon, 18 Feb 2019 16:35:35 +0000 (11:35 -0500)]
Fix typos in code comments in Zend/ [skip ci]
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:11:55 +0000 (18:11 +0300)]
Fixed bug #77632 (FFI Segfaults When Called With Variadics)
Dmitry Stogov [Mon, 18 Feb 2019 14:52:33 +0000 (17:52 +0300)]
Use "quick" macro variants for known argument numbers
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: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.