]>
granicus.if.org Git - php/log
Tyson Andre [Fri, 22 May 2020 21:36:32 +0000 (17:36 -0400)]
Fail in `./configure` when no opcache shm backends exist
This can be seen when the `./configure` step fails to detect `HAVE_SHM_*`,
e.g. due to missing a necessary dependency to compile the test scripts.
(Run `./configure`, run `yum install libtool-ltdl-devel` for missing dependencies,
then run `make`, and php can end up built with 0 shared memory opcache caches)
Give a clearer error message than `unknown`
Searching for `opcache "Fatal Error Unable to allocate shared memory segment of"
"unknown: No such file or directory"` reveals issues such as
https://github.com/termux/termux-packages/issues/2234
Closes GH-5615
George Peter Banyard [Wed, 20 May 2020 21:46:09 +0000 (23:46 +0200)]
Refactor ZPP API to use uint32_t as everywhere else
Closes GH-5609
George Peter Banyard [Fri, 22 May 2020 15:02:25 +0000 (17:02 +0200)]
[skip-ci] Update UPGRADING
Add upgrading note for mixed type and removal of curly braces offset syntax
Nikita Popov [Fri, 22 May 2020 14:57:24 +0000 (16:57 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Revert "Fix #79595: zend_init_fpu() alters FPU precision"
Nikita Popov [Fri, 22 May 2020 14:57:14 +0000 (16:57 +0200)]
Revert "Fix #79595: zend_init_fpu() alters FPU precision"
This reverts commit
88dfc475c5937822399843e8aed9b98a36a01813 .
George Peter Banyard [Fri, 22 May 2020 14:52:17 +0000 (16:52 +0200)]
Remove depreacted curly brace offset syntax
Closes GH-5221
Nikita Popov [Fri, 22 May 2020 14:37:22 +0000 (16:37 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Show diffs for failed tests on Azure CI
Alex Dowad [Fri, 22 May 2020 12:09:20 +0000 (14:09 +0200)]
Show diffs for failed tests on Azure CI
It's currently not possible to view the "Tests" tab on Azure if
you're not signed in, so also display diffs in the log.
Closes GH-5612.
Máté Kocsis [Fri, 27 Mar 2020 22:39:49 +0000 (23:39 +0100)]
Add support for the mixed type
RFC: https://wiki.php.net/rfc/mixed_type_v2
Closes GH-5313
Co-authored-by: Dan Ackroyd <danack@basereality.com>
Christoph M. Becker [Fri, 22 May 2020 13:27:59 +0000 (15:27 +0200)]
Raise ext/pgsql requirements to PostGreSQL 7.4
We can safely assume that users have at the very least libpq 7.4, for
which official support ended on 2010-10-01; even CentOS 6 has 8.4 now.
It is also noteworthy that PDO_PGSQL already requires libpq 7.4 or
later.
Christoph M. Becker [Fri, 22 May 2020 13:47:33 +0000 (15:47 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #79595: zend_init_fpu() alters FPU precision
Christoph M. Becker [Wed, 20 May 2020 11:23:17 +0000 (13:23 +0200)]
Fix #79595: zend_init_fpu() alters FPU precision
On startup, PHP deliberately changes the floating point control word to
enforce binary64 format for the calculations for best consistency
across platforms. However, this is unnessary when compiling under
`__SSE__`, because in this case the x87 instructions are not used.
Therefore, we can skip the modification, which has the benefit that
system libraries are free to work in the mode of their liking.
Dmitry Stogov [Fri, 22 May 2020 09:37:35 +0000 (12:37 +0300)]
Prevent CGG reordering if hanlers order is defined by zend_vm_order.txt
Dmitry Stogov [Fri, 22 May 2020 09:36:52 +0000 (12:36 +0300)]
Fixed typecast
Gerard Roche [Wed, 20 May 2020 19:03:10 +0000 (20:03 +0100)]
Fix PostgreSQL and MySQL setup on Travis CI
Note that the PostgreSQL tests still don't work on some architectures.
Closes GH-5607.
Gerard Roche [Wed, 20 May 2020 19:20:06 +0000 (20:20 +0100)]
run-tests: refactor
Gerard Roche [Wed, 20 May 2020 15:45:14 +0000 (16:45 +0100)]
run-tests: echo message and exit if no tests found
The test runner currently defaults to running the entire test suite if
no selected tests can be found. This can be unexpected.
For example the ext/mysqlnd/ directory has no tests, if you specify that
directory when testing the entire test suite will be run.
run-tests.php [options] ext/mysqlnd/
Closes GH-5605.
Christoph M. Becker [Fri, 22 May 2020 07:22:38 +0000 (09:22 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix #79615: Wrong GIF header written in GD GIFEncode
Christoph M. Becker [Fri, 22 May 2020 07:18:42 +0000 (09:18 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #79615: Wrong GIF header written in GD GIFEncode
Christoph M. Becker [Fri, 22 May 2020 07:11:28 +0000 (09:11 +0200)]
Fix #79615: Wrong GIF header written in GD GIFEncode
The color resolution is expected in bits 4-6 of the packed fields byte
of the logical screen descriptor (byte 10 of the GIF data stream),
according to the specification[1], section 18.
[1] <https://www.w3.org/Graphics/GIF/spec-gif89a.txt>
Dmitry Stogov [Thu, 21 May 2020 15:35:32 +0000 (18:35 +0300)]
Use EX(run_time_cache) instead of RUN_TIME_CACHE(&EX(func)->op_array)
Dmitry Stogov [Thu, 21 May 2020 15:01:44 +0000 (18:01 +0300)]
simplification
Dmitry Stogov [Wed, 20 May 2020 22:06:50 +0000 (01:06 +0300)]
Allow counter settings to be "zero" to disable corresponding counter
Dmitry Stogov [Wed, 20 May 2020 21:57:54 +0000 (00:57 +0300)]
Missed label
Dmitry Stogov [Wed, 20 May 2020 20:05:48 +0000 (23:05 +0300)]
Better condition
Dmitry Stogov [Wed, 20 May 2020 20:04:34 +0000 (23:04 +0300)]
Prefer already cached version of the script
George Peter Banyard [Wed, 20 May 2020 15:36:33 +0000 (17:36 +0200)]
Fix [-Wundef] warning in SQLite3 extension
George Peter Banyard [Wed, 20 May 2020 15:36:27 +0000 (17:36 +0200)]
Fix [-Wundef] warning in SPL extension
George Peter Banyard [Wed, 20 May 2020 15:36:20 +0000 (17:36 +0200)]
More [-Wundef] warnings fixed in POSIX extension
Forgot to squash this into the other commit
George Peter Banyard [Wed, 20 May 2020 15:36:14 +0000 (17:36 +0200)]
Fix [-Wundef] warning in PHAR extension
George Peter Banyard [Wed, 20 May 2020 15:36:07 +0000 (17:36 +0200)]
Fix [-Wundef] warning in OpenSSL extension
George Peter Banyard [Wed, 20 May 2020 15:35:58 +0000 (17:35 +0200)]
Fix [-Wundef] warning in INTL extension
George Peter Banyard [Wed, 20 May 2020 15:35:51 +0000 (17:35 +0200)]
Fix [-Wundef] warning in Iconv extension
George Peter Banyard [Wed, 20 May 2020 15:35:42 +0000 (17:35 +0200)]
Fix [-Wundef] warning in GD extension
Nikita Popov [Wed, 20 May 2020 13:21:01 +0000 (15:21 +0200)]
Add --enable-memory-sanitizer flag
This flag enabled msan late in the pipeline, so that it does
not affect configure checks.
Otherwise we get a false positive report for openpty availability
without -lutil, which will then result in infinite recursion if
actually called.
This also sets origin tracking to 2, so bump the timeout to 90
minutes.
George Peter Banyard [Wed, 20 May 2020 13:41:30 +0000 (15:41 +0200)]
Fix [-Wundef] warning in PDO PostgreSQL extension
George Peter Banyard [Wed, 20 May 2020 13:41:24 +0000 (15:41 +0200)]
Fix [-Wundef] warning in PDO ODBC extension
George Peter Banyard [Wed, 20 May 2020 13:41:18 +0000 (15:41 +0200)]
Fix [-Wundef] warning in PDO OCI extension
George Peter Banyard [Wed, 20 May 2020 13:41:13 +0000 (15:41 +0200)]
Fix [-Wundef] warning in PDO MySQL extension
George Peter Banyard [Wed, 20 May 2020 13:41:07 +0000 (15:41 +0200)]
Fix [-Wundef] warning in PDO Firebird extension
George Peter Banyard [Wed, 20 May 2020 13:40:57 +0000 (15:40 +0200)]
Fix [-Wundef] warning in PDO DBLib extension
George Peter Banyard [Wed, 20 May 2020 12:50:24 +0000 (14:50 +0200)]
Fix [-Wundef] warning in SimpleXML extension
George Peter Banyard [Wed, 20 May 2020 12:41:14 +0000 (14:41 +0200)]
Fix [-Wundef] warning in SOAP extension
George Peter Banyard [Wed, 20 May 2020 12:17:02 +0000 (14:17 +0200)]
Fix [-Wundef] warning in XLS extension
George Peter Banyard [Wed, 20 May 2020 12:14:13 +0000 (14:14 +0200)]
Fix [-Wundef] warning in XMLReader extension
George Peter Banyard [Wed, 20 May 2020 12:12:36 +0000 (14:12 +0200)]
Fix [-Wundef] warning in XML extension
Tyson Andre [Wed, 20 May 2020 14:01:34 +0000 (10:01 -0400)]
Fix grammar in the jit's README.md
For GH-5585
Tyson Andre [Sun, 17 May 2020 17:04:11 +0000 (13:04 -0400)]
[skip ci] Add a README for Opcache's JIT.
Mention information that would be useful for working on new features or bug
fixes for the JIT.
Closes GH-5585
Nikita Popov [Tue, 19 May 2020 14:09:42 +0000 (16:09 +0200)]
Add file cache job on azure
Nikita Popov [Wed, 20 May 2020 08:04:57 +0000 (10:04 +0200)]
Add --file-cache-prime/use options to run-tests
--file-cache-prime populates the file cache,
--file-cache-use uses the file cache.
And fix a number of tests to run under file cache or disabled
timestamp validation.
Nikita Popov [Wed, 20 May 2020 13:25:19 +0000 (15:25 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Update msan symbolizer path
Nikita Popov [Fri, 15 May 2020 08:21:59 +0000 (10:21 +0200)]
Update msan symbolizer path
To account for the newer version of LLVM on Ubuntu 18.04.
Christoph M. Becker [Wed, 20 May 2020 12:59:11 +0000 (14:59 +0200)]
Fix --disable-ipv6 support on Windows
`HAVE_IPV6` and `HAVE_GAI_STRERROR` are supposed to be undefined now,
if not supported.
Máté Kocsis [Wed, 20 May 2020 10:05:20 +0000 (12:05 +0200)]
Generate function entries for ext/zip
Closes GH-5601
Christoph M. Becker [Wed, 20 May 2020 12:10:19 +0000 (14:10 +0200)]
Revert "Revert "Merge branch 'PHP-7.4'""
This reverts commit
28e650a , which reverted commit
046dcfb , which had
to be reverted due to phpdbg issues. The culprit was that we did not
properly reset `zend_handler_table` to `NULL`, which is required for
SAPIs which may restart the engine after shutdown.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=
28e650abf8097a28789a005e5028fee095359583 >
[2] <http://git.php.net/?p=php-src.git;a=commit;h=
046dcfb531e242d36a7af2942b9b148290c3c7fe >
George Peter Banyard [Wed, 20 May 2020 12:00:20 +0000 (14:00 +0200)]
Fix [-Wundef] warning in PostgreSQL extension
George Peter Banyard [Wed, 20 May 2020 12:00:14 +0000 (14:00 +0200)]
Fix [-Wundef] warning in POSIX extension
George Peter Banyard [Wed, 20 May 2020 12:00:09 +0000 (14:00 +0200)]
Fix [-Wundef] warning in PSpell extension
George Peter Banyard [Wed, 20 May 2020 12:00:03 +0000 (14:00 +0200)]
Fix [-Wundef] warning in Session extension
George Peter Banyard [Wed, 20 May 2020 11:59:56 +0000 (13:59 +0200)]
Fix [-Wundef] warning in SHMOP extension
George Peter Banyard [Wed, 20 May 2020 11:59:50 +0000 (13:59 +0200)]
Fix [-Wundef] warning in ODBC extension
George Peter Banyard [Wed, 20 May 2020 11:59:44 +0000 (13:59 +0200)]
Fix [-Wundef] warning in PCNTL extension
George Peter Banyard [Wed, 20 May 2020 11:59:38 +0000 (13:59 +0200)]
Fix [-Wundef] warning in PCRE extension
George Peter Banyard [Wed, 20 May 2020 11:59:27 +0000 (13:59 +0200)]
Fix [-Wundef] warning in TSRM
Nikita Popov [Wed, 20 May 2020 09:58:42 +0000 (11:58 +0200)]
Slightly deduplicate run-tests code
Nikita Popov [Wed, 20 May 2020 09:24:37 +0000 (11:24 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix bug #79603, by retrying on RTD key collision
Nikita Popov [Tue, 19 May 2020 08:13:25 +0000 (10:13 +0200)]
Fix bug #79603, by retrying on RTD key collision
This is a non-intrusive fix for 7.4, still trying to find a good
solution for master.
Closes GH-5597.
Nikita Popov [Tue, 19 May 2020 13:01:18 +0000 (15:01 +0200)]
Add support for replaying warnings in opcache
If opcache.record_warnings is enabled, opcache will record
compilation warnings and replay them when the file is included
again. The primary use case I have in mind for this is automated
testing of the opcache file cache.
This resolves bug #76535.
Nikita Popov [Wed, 20 May 2020 09:13:07 +0000 (11:13 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix static property indirections in file cache
Don't require rc=1 for function static variables
Nikita Popov [Wed, 20 May 2020 08:55:36 +0000 (10:55 +0200)]
Fix static property indirections in file cache
If the class is already linked, we need to serialize and
unserialize INDIRECTed static properties. Normally these would
be set up when copying from cache.
Nikita Popov [Wed, 20 May 2020 08:26:08 +0000 (10:26 +0200)]
Don't require rc=1 for function static variables
If file cache only is used, then static_variables_ptr may point
to an immutable static_variables HT, which we do not want to
destroy here.
Nikita Popov [Wed, 20 May 2020 07:49:46 +0000 (09:49 +0200)]
Disable JIT in file cache test
File cache and JIT are currently incomatible.
Dmitry Stogov [Tue, 19 May 2020 23:07:18 +0000 (02:07 +0300)]
Tracing JIT SHM data initilaizarion must be done at MINIT
Dmitry Stogov [Tue, 19 May 2020 23:07:07 +0000 (02:07 +0300)]
typo
Dmitry Stogov [Tue, 19 May 2020 22:40:01 +0000 (01:40 +0300)]
Make number of root and side traces configurable
Dmitry Stogov [Tue, 19 May 2020 21:12:24 +0000 (00:12 +0300)]
Use light version of zend_array_destroy() to free arrays without refcounted elements and string indexes.
Christoph M. Becker [Tue, 19 May 2020 15:28:39 +0000 (17:28 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Bump version
Christoph M. Becker [Tue, 19 May 2020 15:24:18 +0000 (17:24 +0200)]
Bump version
Seems that has been forgotten.
Christoph M. Becker [Tue, 19 May 2020 14:01:48 +0000 (16:01 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix INI setting member name
Christoph M. Becker [Tue, 19 May 2020 14:00:19 +0000 (16:00 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix INI setting member name
Christoph M. Becker [Mon, 18 May 2020 14:07:16 +0000 (16:07 +0200)]
Fix INI setting member name
Since the member is not used in `OnUpdateEol()` that's not really an
issue, but still it's confusing to apparently have two INI settings
targeting the same member.
Dmitry Stogov [Tue, 19 May 2020 13:59:07 +0000 (16:59 +0300)]
Separate common code
Máté Kocsis [Tue, 19 May 2020 12:54:37 +0000 (14:54 +0200)]
Fix some final classes in stubs
Máté Kocsis [Tue, 19 May 2020 11:56:30 +0000 (13:56 +0200)]
Generate method entries for Closure
Nikita Popov [Tue, 19 May 2020 12:12:30 +0000 (14:12 +0200)]
Fix opcache_get_configuration() test
Dmitry Stogov [Tue, 19 May 2020 10:35:02 +0000 (13:35 +0300)]
Make JIT parameters configurable through opcache.jit_... options
Nikita Popov [Tue, 19 May 2020 09:10:19 +0000 (11:10 +0200)]
Extract zend_foreach_op_array()
Move this functionality from zend_call_graph into zend_optimizer,
because we use this pattern in a number of places.
Dmitry Stogov [Mon, 18 May 2020 16:00:38 +0000 (19:00 +0300)]
Keep ZEND_FUNC_INFO() for all run-time JIT triggers
Nikita Popov [Mon, 18 May 2020 13:25:24 +0000 (15:25 +0200)]
Fix phpdbg test with JIT
With JIT one extra cache slot is allocated, so the extended_value
needs one more character, and the output ends up having one space
less...
Derick Rethans [Mon, 18 May 2020 12:51:47 +0000 (13:51 +0100)]
Merge branch 'PHP-7.4'
Derick Rethans [Mon, 18 May 2020 12:51:40 +0000 (13:51 +0100)]
Put Xdebug 3 into 'off' mode for run-tests.php
Derick Rethans [Mon, 18 May 2020 12:51:14 +0000 (13:51 +0100)]
Merge branch 'PHP-7.3' into PHP-7.4
Derick Rethans [Mon, 18 May 2020 12:49:12 +0000 (13:49 +0100)]
Put Xdebug 3 into 'off' mode for run-tests.php
Dmitry Stogov [Mon, 18 May 2020 12:29:28 +0000 (15:29 +0300)]
Fixed JIT on load with -O4
Dmitry Stogov [Mon, 18 May 2020 12:04:39 +0000 (15:04 +0300)]
Wrong condition
Dmitry Stogov [Mon, 18 May 2020 11:56:39 +0000 (14:56 +0300)]
Fixed JIT with non-HYBRID VM
Dmitry Stogov [Mon, 18 May 2020 11:39:49 +0000 (14:39 +0300)]
Tracing JIT with -O1 doesn't need to do type inference and abstract stack maintaining
Dmitry Stogov [Mon, 18 May 2020 11:30:55 +0000 (14:30 +0300)]
func_info should be empty
George Peter Banyard [Sun, 17 May 2020 23:13:11 +0000 (01:13 +0200)]
Fix bogus check in TSRM and adjust TSRM_ASSERT macro
Closes GH-5562
Dmitry Stogov [Mon, 18 May 2020 07:23:06 +0000 (10:23 +0300)]
JIT refactoring to allow run-time changes of JIT options (triggers, optimization_level, debug flags, etc)