]>
granicus.if.org Git - php/log
Peter Kokot [Mon, 8 Jul 2019 14:24:35 +0000 (16:24 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Catch up with recent changes [ci skip]
Peter Kokot [Mon, 8 Jul 2019 14:23:27 +0000 (16:23 +0200)]
Catch up with recent changes [ci skip]
- RFC about password_hash portability improvements added
- build system minor updates noted
- typos
Peter Kokot [Mon, 8 Jul 2019 13:06:54 +0000 (15:06 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove APACHE symbol
Peter Kokot [Mon, 8 Jul 2019 13:05:54 +0000 (15:05 +0200)]
Remove APACHE symbol
The APACHE symbol was used in very early PHP versions to indicate the
Apache module usage. Since PHP 4 this is no longer used in the code.
Peter Kokot [Mon, 8 Jul 2019 12:59:40 +0000 (14:59 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Refactor genif.sh
Peter Kokot [Mon, 8 Jul 2019 12:58:26 +0000 (14:58 +0200)]
Refactor genif.sh
Changes:
- Coding style fixes
- ${1+"$@"} replaced with "$@" [1]
- EXTRA_MODULE_PTRS variable is not used anymore
- awk tool defined via environment variable
- srcdir determined automatically from the genif.sh location
[1] https://www.in-ulm.de/~mascheck/various/bourne_args/
Closes GH-4372
Nikita Popov [Mon, 8 Jul 2019 11:36:26 +0000 (13:36 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Jul 2019 11:26:59 +0000 (13:26 +0200)]
Make busy wait busier
Another stab in the dark to fix the intermittent failures of timeout
tests on macos CI: We're using ITIMER_PROF, which means that the
timer counts against user+system time. The "busy" wait loop counts
against real time. Currently it calls microtime() on every iteration.
If that call is implemented as a syscall rather than going through
vDSO or commpage we might be seeing many context switches here which
drive up the real time, but not user or system time.
See if making the loop busier and calling microtime() less helps the
situation.
Dmitry Stogov [Mon, 8 Jul 2019 11:13:02 +0000 (14:13 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Delay EG(exception) check on slow path
Dmitry Stogov [Mon, 8 Jul 2019 10:56:34 +0000 (13:56 +0300)]
Delay EG(exception) check on slow path
Nikita Popov [Mon, 8 Jul 2019 10:53:50 +0000 (12:53 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Mon, 8 Jul 2019 10:41:11 +0000 (12:41 +0200)]
Remove redundant variable declaration
Scott Dutton [Fri, 28 Jun 2019 06:12:39 +0000 (07:12 +0100)]
Deprecate passing invalid character to base_convert etc
RFC: https://wiki.php.net/rfc/base_convert_improvements
Peter Kokot [Mon, 8 Jul 2019 10:47:35 +0000 (12:47 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove C89 checks for signal.h and strerror
Peter Kokot [Mon, 8 Jul 2019 10:46:51 +0000 (12:46 +0200)]
Remove C89 checks for signal.h and strerror
These are part of the C89 and on today's systems not needed to be
checked anymore. This removes symbols HAVE_SIGNAL and HAVE_STRERROR.
- http://port70.net/~nsz/c/c89/c89-draft.html
- locale.h is also part of C89 but will be removed per request in PHP 8
Peter Kokot [Mon, 8 Jul 2019 10:41:15 +0000 (12:41 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Update libmagic patch
David Carlier [Thu, 4 Jul 2019 17:46:20 +0000 (18:46 +0100)]
JIT: Reading php binary symbols list on FreeBSD
Closes GH-4363.
Peter Kokot [Mon, 8 Jul 2019 10:38:47 +0000 (12:38 +0200)]
Update libmagic patch
This simplifies the libmagic patch:
- in upstream the HAVE_STRERROR check has been removed
- in upstream library the HAVE_SIGNAL_H has been removed
- indentations syncs with the upstream library
- some irrelevant changes removed from the patch (log comment), upstream
has this correctly logged already so no need to patch the comment.
Closes GH-4298
Nikita Popov [Mon, 8 Jul 2019 08:49:34 +0000 (10:49 +0200)]
Remove INPUT_SESSION and INPUT_REQUEST
These were never supported and always generated a warning. Remove
them entirely for PHP 8.
Christoph M. Becker [Mon, 8 Jul 2019 08:47:09 +0000 (10:47 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Implement FR #77230: Support custom CFLAGS and LDFLAGS from environment
Christoph M. Becker [Tue, 2 Jul 2019 17:08:19 +0000 (19:08 +0200)]
Implement FR #77230: Support custom CFLAGS and LDFLAGS from environment
While it is already possible to *set* CFLAGS and LDFLAGS (actually all
variables) from the environment for `nmake` (by passing the `/E`
option), it is not possible to *add* any (C|LD)FLAGS, which can be
useful in some cases. Instead of allowing this for `nmake`, we add
support for additional custom (C|LD)FLAGS to `configure`, similar to
how that works on Linux, so one could actually write:
````
set CFLAGS=foo & set LDFLAGS=bar & configure
````
This also allows us to use these flags during configure.
Christoph M. Becker [Mon, 8 Jul 2019 08:32:39 +0000 (10:32 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix TsHashTable related race conditions
Christoph M. Becker [Mon, 1 Jul 2019 08:18:19 +0000 (10:18 +0200)]
Fix TsHashTable related race conditions
Although TsHashTable and the according API are supposed to easily make
a HashTable thread-safe, they do not; for instance, there can be race
conditions between finding and updating entries. We therefore avoid
the usage of TsHashTable in favor of a HashTable with our own mutex
management.
The patch has been provided by krakjoe@php.net; I only did some minor
fixes and tweaks.
Peter Kokot [Mon, 8 Jul 2019 08:26:08 +0000 (10:26 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Simplify PHP_CHECK_PDO_INCLUDES calls
Peter Kokot [Mon, 8 Jul 2019 08:23:09 +0000 (10:23 +0200)]
Simplify PHP_CHECK_PDO_INCLUDES calls
Conditional checks were once used for backwards compatibility with
phpize from PHP versions that didn't have this macro call yet.
Closes GH-4376
Dmitry Stogov [Mon, 8 Jul 2019 08:21:54 +0000 (11:21 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fixed opcode description
Dmitry Stogov [Mon, 8 Jul 2019 08:20:46 +0000 (11:20 +0300)]
Fixed opcode description
Peter Kokot [Mon, 8 Jul 2019 08:20:14 +0000 (10:20 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove some unused variables
Peter Kokot [Mon, 8 Jul 2019 08:18:17 +0000 (10:18 +0200)]
Remove some unused variables
- Variables php_abs_top_srcdir php_abs_top_builddir are no longer used.
- ZEND_EXT_TYPE is always zend_extension and variable is no longer used.
Closes GH-4378
Sara Golemon [Mon, 8 Jul 2019 01:55:12 +0000 (21:55 -0400)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Provide argon2i(d) password hashing from sodium when needed
Sara Golemon [Fri, 5 Apr 2019 21:33:10 +0000 (17:33 -0400)]
Provide argon2i(d) password hashing from sodium when needed
Stanislav Malyshev [Sun, 7 Jul 2019 23:21:06 +0000 (16:21 -0700)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Simplify expression and remove the possibility of div by 0
Stanislav Malyshev [Sun, 7 Jul 2019 23:16:05 +0000 (16:16 -0700)]
Simplify expression and remove the possibility of div by 0
Maybe should use exp2() but not sure about how supported it is.
Peter Kokot [Sun, 7 Jul 2019 10:16:14 +0000 (12:16 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove PHP_DEBUG_MACRO
Peter Kokot [Sun, 7 Jul 2019 04:11:10 +0000 (06:11 +0200)]
Remove PHP_DEBUG_MACRO
The macro is no longer used. The warning at the end of the configure
script therefore is also no longer used.
Peter Kokot [Sun, 7 Jul 2019 10:10:59 +0000 (12:10 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove some more Apache 1 left overs
Peter Kokot [Sun, 7 Jul 2019 04:25:58 +0000 (06:25 +0200)]
Remove some more Apache 1 left overs
- warning in configure.ac is relevant for the sapi/apache
- errors output redirected to /dev/null when checking Apache version
Nikita Popov [Sun, 7 Jul 2019 09:25:16 +0000 (11:25 +0200)]
Merge branch 'PHP-7.4'
[ci skip]
Nikita Popov [Sun, 7 Jul 2019 09:23:58 +0000 (11:23 +0200)]
Mention that zend_parse_parameters should not be tested
Also mention that --CREDITS-- section should not be included
anymore. We should also change qa.php.net to stop advertising
these.
[ci skip]
Nikita Popov [Sat, 6 Jul 2019 21:51:26 +0000 (23:51 +0200)]
Disable jit on msan job
JIT code is not instrumented and as such incompatible with msan.
I'm not sure why this only started failing in the last build, it
shouldn't have worked before either...
Peter Kokot [Sat, 6 Jul 2019 02:55:42 +0000 (04:55 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Move footer to the end of configure output
Peter Kokot [Wed, 3 Jul 2019 22:18:15 +0000 (00:18 +0200)]
Move footer to the end of configure output
Peter Kokot [Fri, 5 Jul 2019 21:30:51 +0000 (23:30 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove PTHREADS_ASSIGN_VARS
Peter Kokot [Mon, 1 Jul 2019 23:00:14 +0000 (01:00 +0200)]
Remove PTHREADS_ASSIGN_VARS
This simplifies TSRM build steps a bit and avoids doing unnecessary
steps:
- The `PTHREADS_CHECK_COMPILE` can called inside the for loops only
since this is only where the `$pthreads_checked` variable is used.
- Assigning variables can be then done only in the configure.ac
once.
- use `m4_include()` instead of the `sinclude()` in the middle of
the build steps.
- The `$threads_result` variable is not used in the code or in
extensions.
Nikita Popov [Fri, 5 Jul 2019 18:51:31 +0000 (20:51 +0200)]
Always generate interrupt check in jit
Even if zend_interrupt_function is NULL, we still need to perform
the interrupt check for timeouts (which do not use
zend_interrupt_function).
Christoph M. Becker [Fri, 5 Jul 2019 13:57:01 +0000 (15:57 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Remove superfluous assignment
Christoph M. Becker [Fri, 5 Jul 2019 13:51:53 +0000 (15:51 +0200)]
Remove superfluous assignment
Dmitry Stogov [Fri, 5 Jul 2019 11:25:26 +0000 (14:25 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Eliminate useless checks
Dmitry Stogov [Fri, 5 Jul 2019 11:21:18 +0000 (14:21 +0300)]
Eliminate useless checks
Christoph M. Becker [Fri, 5 Jul 2019 10:49:14 +0000 (12:49 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Temporarily skip test
Christoph M. Becker [Fri, 5 Jul 2019 10:44:55 +0000 (12:44 +0200)]
Temporarily skip test
This test hangs on Windows for ~10 minutes as of commit
30019f4 , so we
temporarily skip it. The issue will be investigated by Joe and myself
in due course.
Nikita Popov [Fri, 5 Jul 2019 10:07:51 +0000 (12:07 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 5 Jul 2019 10:07:45 +0000 (12:07 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 5 Jul 2019 10:07:10 +0000 (12:07 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 5 Jul 2019 10:06:52 +0000 (12:06 +0200)]
Backport fe_reset_rw case
Nikita Popov [Fri, 5 Jul 2019 10:05:10 +0000 (12:05 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 5 Jul 2019 10:02:26 +0000 (12:02 +0200)]
Make sure all cases of fetch_dim_w adjustment are handled
Use EMPTY_SWITCH_DEFAULT_CASE() to trigger an assertion in case
we miss something.
Add missing FE_RESET_RW case.
Nikita Popov [Fri, 5 Jul 2019 09:43:26 +0000 (11:43 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 5 Jul 2019 09:41:57 +0000 (11:41 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 5 Jul 2019 09:40:45 +0000 (11:40 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 5 Jul 2019 09:39:42 +0000 (11:39 +0200)]
Fix inference for compound object op on dim
Nikita Popov [Fri, 5 Jul 2019 09:21:43 +0000 (11:21 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 5 Jul 2019 09:15:13 +0000 (11:15 +0200)]
Optimize integer in_array with strict=true
It doesn't make sense that using in_array with strict=false is
much faster for this case, due to lack of a specialized codepath.
Dmitry Stogov [Fri, 5 Jul 2019 09:20:12 +0000 (12:20 +0300)]
Removed die('skip wurstuoppe');
Dmitry Stogov [Fri, 5 Jul 2019 09:16:30 +0000 (12:16 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Replace ZEND_ASSIGN_ADD (and others) by ZEND_ASSIGN_OP, ZEND_ASSIGN_DIM_OP, ZEND_ASSGIN_OBJ_OP and ZEND_ASSIGN_STATIC_PROP_OP
Dmitry Stogov [Fri, 5 Jul 2019 09:03:25 +0000 (12:03 +0300)]
Replace ZEND_ASSIGN_ADD (and others) by ZEND_ASSIGN_OP, ZEND_ASSIGN_DIM_OP, ZEND_ASSGIN_OBJ_OP and ZEND_ASSIGN_STATIC_PROP_OP
Nikita Popov [Fri, 5 Jul 2019 09:00:54 +0000 (11:00 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 5 Jul 2019 09:00:27 +0000 (11:00 +0200)]
Add test
Forgot to commit this.
Nikita Popov [Fri, 5 Jul 2019 08:47:01 +0000 (10:47 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Fri, 5 Jul 2019 08:44:48 +0000 (10:44 +0200)]
Fix wrong size calculation related to function name
It would be nice if we could drop this manual function name reuse
code altogether and rely on interning for it.
Nikita Popov [Fri, 5 Jul 2019 08:41:39 +0000 (10:41 +0200)]
Preloading: Don't move conditional functions to back to scripts
Conditional function declaration may be referenced by functions or
classes that have been preloaded, so we should not move them back
to scripts.
What we probably should be doing though is to discard conditional
functions that are not used in the optimizer. This is probably
reasonably common for polyfills, where we will be able to const-eval
the conditions and drop the BBs declaring the functions, but won't
delete the function declarations themselves.
George Wang [Thu, 4 Jul 2019 16:15:25 +0000 (12:15 -0400)]
Merge branch 'PHP-7.4'
George Wang [Thu, 4 Jul 2019 16:14:48 +0000 (12:14 -0400)]
Merge branch 'PHP-7.3' into PHP-7.4
George Wang [Thu, 4 Jul 2019 16:04:08 +0000 (12:04 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3
George Wang [Thu, 4 Jul 2019 16:03:21 +0000 (12:03 -0400)]
Updated to LiteSpeed SAPI V7.4.3
Increased response header count limit from 100 to 1000.
Added crash handler to cleanly shutdown PHP request.
Added CloudLinux mod_lsapi mode
Fixed bug #76058
Nikita Popov [Thu, 4 Jul 2019 15:13:04 +0000 (17:13 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 4 Jul 2019 14:17:46 +0000 (16:17 +0200)]
Compact literals: Don't insert unmergeable keys
LITERAL_VALUE with related literals cannot be merged, avoid inserting
them in the literals hash in the first place. Otherwise we may end up
inserting the same key multiple times. We may also miss merging
opportunities due to the duplicate keys.
Nikita Popov [Thu, 4 Jul 2019 13:08:47 +0000 (15:08 +0200)]
Assert that HT entries using add_new APIs are really new
Dmitry Stogov [Thu, 4 Jul 2019 14:37:52 +0000 (17:37 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Improve zend_binary_assign_op helpers. Reorder opcode numbers to make ADD-POW and ASSIGN_ADD-ASSIGN_POW opcodes sequencional.
Dmitry Stogov [Thu, 4 Jul 2019 14:25:43 +0000 (17:25 +0300)]
Improve zend_binary_assign_op helpers.
Reorder opcode numbers to make ADD-POW and ASSIGN_ADD-ASSIGN_POW opcodes sequencional.
Dmitry Stogov [Thu, 4 Jul 2019 12:55:33 +0000 (15:55 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Introduce and use ZEND_VM_INLINE_HANDLER() to avoid ZEND_RETURN exception
Dmitry Stogov [Thu, 4 Jul 2019 12:54:45 +0000 (15:54 +0300)]
Introduce and use ZEND_VM_INLINE_HANDLER() to avoid ZEND_RETURN exception
Christoph M. Becker [Thu, 4 Jul 2019 12:51:15 +0000 (14:51 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
[ci skip] Remove NEWS entry
Christoph M. Becker [Thu, 4 Jul 2019 12:50:51 +0000 (14:50 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
[ci skip] Remove NEWS entry
Christoph M. Becker [Thu, 4 Jul 2019 12:50:23 +0000 (14:50 +0200)]
[ci skip] Remove NEWS entry
This commit already was contained in PHP 7.3.7, but doesn't need a NEWS
entry, since the regression had only been introduced with PHP 7.3.7RC1.
Christoph M. Becker [Thu, 4 Jul 2019 12:45:13 +0000 (14:45 +0200)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Fix typo in NEWS [skip ci]
Christoph M. Becker [Thu, 4 Jul 2019 12:44:38 +0000 (14:44 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix typo in NEWS [skip ci]
Fabien Villepinte [Thu, 4 Jul 2019 12:09:22 +0000 (14:09 +0200)]
Fix typo in NEWS [skip ci]
Nikita Popov [Thu, 4 Jul 2019 10:20:40 +0000 (12:20 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 4 Jul 2019 10:19:15 +0000 (12:19 +0200)]
Preloading: Relax known type restrictions
Check whether there is a parent/interface/trait method with the same
name and only then require the type to be known. This reduces the
number of cases where this triggers in practice a lot.
Nikita Popov [Thu, 4 Jul 2019 09:58:46 +0000 (11:58 +0200)]
Preloading: Also handle trait methods outside main script
Dmitry Stogov [Thu, 4 Jul 2019 10:08:08 +0000 (13:08 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Split destructor
Dmitry Stogov [Thu, 4 Jul 2019 10:07:47 +0000 (13:07 +0300)]
Split destructor
Nikita Popov [Thu, 4 Jul 2019 09:07:14 +0000 (11:07 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 4 Jul 2019 09:05:01 +0000 (11:05 +0200)]
Preloading: Prevent autoloading while resolving constants
Nikita Popov [Thu, 4 Jul 2019 08:32:48 +0000 (10:32 +0200)]
Merge branch 'PHP-7.4'
Nikita Popov [Thu, 4 Jul 2019 08:28:12 +0000 (10:28 +0200)]
Set PROPERTY_TYPES_RESOLVED flag for internal classes
Also make sure that the resolution happens before preloading runs.
Nikita Popov [Thu, 4 Jul 2019 07:53:51 +0000 (09:53 +0200)]
Fix ZTS flag on master
Dmitry Stogov [Wed, 3 Jul 2019 17:24:26 +0000 (20:24 +0300)]
Merge branch 'PHP-7.4'
* PHP-7.4:
Better optimization in RELEASE build. ZEND_ASSERT(s) prevented optimization
Dmitry Stogov [Wed, 3 Jul 2019 17:19:56 +0000 (20:19 +0300)]
Better optimization in RELEASE build. ZEND_ASSERT(s) prevented optimization