]> granicus.if.org Git - php/log
php
5 years agoOptimize integer in_array with strict=true
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.

5 years agoReplace ZEND_ASSIGN_ADD (and others) by ZEND_ASSIGN_OP, ZEND_ASSIGN_DIM_OP, ZEND_ASSG...
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

5 years agoAdd test
Nikita Popov [Fri, 5 Jul 2019 09:00:27 +0000 (11:00 +0200)]
Add test

Forgot to commit this.

5 years agoFix wrong size calculation related to function name
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.

5 years agoPreloading: Don't move conditional functions to back to scripts
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.

5 years agoMerge branch 'PHP-7.3' into 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

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
George Wang [Thu, 4 Jul 2019 16:04:08 +0000 (12:04 -0400)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoUpdated to LiteSpeed SAPI V7.4.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

5 years agoCompact literals: Don't insert unmergeable keys
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.

5 years agoAssert that HT entries using add_new APIs are really new
Nikita Popov [Thu, 4 Jul 2019 13:08:47 +0000 (15:08 +0200)]
Assert that HT entries using add_new APIs are really new

5 years agoImprove zend_binary_assign_op helpers.
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.

5 years agoIntroduce 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

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
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

5 years ago[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.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
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]

5 years agoFix typo in NEWS [skip ci]
Fabien Villepinte [Thu, 4 Jul 2019 12:09:22 +0000 (14:09 +0200)]
Fix typo in NEWS [skip ci]

5 years agoPreloading: Relax known type restrictions
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.

5 years agoPreloading: Also handle trait methods outside main script
Nikita Popov [Thu, 4 Jul 2019 09:58:46 +0000 (11:58 +0200)]
Preloading: Also handle trait methods outside main script

5 years agoSplit destructor
Dmitry Stogov [Thu, 4 Jul 2019 10:07:47 +0000 (13:07 +0300)]
Split destructor

5 years agoPreloading: Prevent autoloading while resolving constants
Nikita Popov [Thu, 4 Jul 2019 09:05:01 +0000 (11:05 +0200)]
Preloading: Prevent autoloading while resolving constants

5 years agoSet PROPERTY_TYPES_RESOLVED flag for internal classes
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.

5 years agoBetter 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

5 years agoMerge branch 'php-cli-server-improvements' into PHP-7.4
Joe Watkins [Wed, 3 Jul 2019 14:31:40 +0000 (16:31 +0200)]
Merge branch 'php-cli-server-improvements' into PHP-7.4

* php-cli-server-improvements:
  improvements to cli server

5 years agoimprovements to cli server
Joe Watkins [Wed, 3 Jul 2019 14:30:51 +0000 (16:30 +0200)]
improvements to cli server

5 years agoImprove unlinked class diagnostics during preloading
Nikita Popov [Wed, 3 Jul 2019 12:05:10 +0000 (14:05 +0200)]
Improve unlinked class diagnostics during preloading

5 years agoAvoid use of random ports in some socket tests
Nikita Popov [Wed, 3 Jul 2019 10:47:49 +0000 (12:47 +0200)]
Avoid use of random ports in some socket tests

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 3 Jul 2019 10:37:00 +0000 (12:37 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Wed, 3 Jul 2019 10:36:33 +0000 (12:36 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFixed bug #78231
Nikita Popov [Wed, 3 Jul 2019 10:27:13 +0000 (12:27 +0200)]
Fixed bug #78231

5 years agoRemove curl_basic_017.phpt
Nikita Popov [Wed, 3 Jul 2019 09:38:24 +0000 (11:38 +0200)]
Remove curl_basic_017.phpt

The output of the three handles may be interleaved. We already have
curl_basic_018.phpt which uses curl_multi_getcontent() and thus
has predictable output. As such, I'm dropping this test altogether.

5 years agoFix file conflict in fgets test
Nikita Popov [Wed, 3 Jul 2019 09:27:02 +0000 (11:27 +0200)]
Fix file conflict in fgets test

5 years agoSkip pcntl_sigwaitinfo() test under asan/msan
Nikita Popov [Wed, 3 Jul 2019 09:01:59 +0000 (11:01 +0200)]
Skip pcntl_sigwaitinfo() test under asan/msan

This test often fails under asan/msan with a timeout for unknown
reasons.

5 years agoFixed bug #78239
Nikita Popov [Wed, 3 Jul 2019 08:59:26 +0000 (10:59 +0200)]
Fixed bug #78239

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Wed, 3 Jul 2019 08:20:32 +0000 (10:20 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoFixed bug #78230
Nikita Popov [Wed, 3 Jul 2019 08:19:31 +0000 (10:19 +0200)]
Fixed bug #78230

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Wed, 3 Jul 2019 08:02:44 +0000 (10:02 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #78241: touch() does not handle dates after 2038 in PHP 64-bit

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 3 Jul 2019 08:00:05 +0000 (10:00 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #78241: touch() does not handle dates after 2038 in PHP 64-bit

5 years agoFix #78241: touch() does not handle dates after 2038 in PHP 64-bit
Christoph M. Becker [Wed, 3 Jul 2019 07:59:17 +0000 (09:59 +0200)]
Fix #78241: touch() does not handle dates after 2038 in PHP 64-bit

`time_t` defaults to `_time64` (which is 64bit signed) even on x86, but
`Int32x32To64()` truncates it to signed 32bit.  We replace the macro
with the "manual" calculation.

5 years agoOptimization of INC/DEC helpers
Dmitry Stogov [Wed, 3 Jul 2019 07:33:03 +0000 (10:33 +0300)]
Optimization of INC/DEC helpers

5 years agoRemoved mysqlnd stats from phpinfo page
Pieter Hordijk [Wed, 15 May 2019 14:13:34 +0000 (17:13 +0300)]
Removed mysqlnd stats from phpinfo page

All information can already be retrieved using the APIs at https://www.php.net/manual/en/mysqlnd.stats.php. Closes https://bugs.php.net/bug.php?id=60594

5 years agoEnable option checking on CI
Peter Kokot [Tue, 2 Jul 2019 20:29:54 +0000 (22:29 +0200)]
Enable option checking on CI

This adds the Autoconf's --enable-option-checking=fatal option so
when non existing option from the PHP's configure options is used
a fatal error happens.

5 years agoRemove libtool and automake from azure installs
Peter Kokot [Wed, 3 Jul 2019 00:14:12 +0000 (02:14 +0200)]
Remove libtool and automake from azure installs

These two deps are not needed to build PHP.

5 years agoRemove PHP_CHECK_CONFIGURE_OPTIONS
Peter Kokot [Tue, 2 Jul 2019 20:15:24 +0000 (22:15 +0200)]
Remove PHP_CHECK_CONFIGURE_OPTIONS

Instead of building a custom macro for checking configure options,
Autoconf 2.62+ already outputs a warning at the beginning and the end
of the output of configure script. It automatically detects correct
and wrong options better.

This is related also to bug #55634.

So now instead a better way is the default Autoconf approach:

This outputs a warning at the beginning and end of the configure output:

    ./configure --with-non-existing

This results in fatal error:

    ./configure --non-existing

    configure: error: unrecognized option: `--non-existing'
    Try `./configure --help' for more information

The `--enable-option-checking=fatal` results in fatal error for all non
existing options:

    ./configure --with-non-existing --enable-option-checking=fatal

    configure: error: unrecognized options: --with-non-existing

Closes GH-4348

5 years agoRemove some old BeOS artefacts
Peter Kokot [Mon, 1 Jul 2019 20:20:13 +0000 (22:20 +0200)]
Remove some old BeOS artefacts

- checking for beos systems is no longer relevant in configure.ac
- usage of undefined constant BETHREADS removed.

Closes GH-4346

5 years agoRemove check for ApplicationServices/ApplicationServices.h
Peter Kokot [Tue, 2 Jul 2019 20:05:00 +0000 (22:05 +0200)]
Remove check for ApplicationServices/ApplicationServices.h

The symbol HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H is not used
and check not needed.

Closes GH-4336

5 years agoazure: exclude some documentation paths
Jan Altensen [Tue, 2 Jul 2019 13:24:31 +0000 (15:24 +0200)]
azure: exclude some documentation paths

Closes GH-4352.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 2 Jul 2019 14:12:36 +0000 (16:12 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 2 Jul 2019 14:12:24 +0000 (16:12 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoBackport test fix
Nikita Popov [Tue, 2 Jul 2019 14:10:56 +0000 (16:10 +0200)]
Backport test fix

Closes GH-3816.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 2 Jul 2019 13:09:27 +0000 (15:09 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix NEWS

5 years agoFix NEWS
Christoph M. Becker [Tue, 2 Jul 2019 13:08:10 +0000 (15:08 +0200)]
Fix NEWS

Bug #78185 fixed a regression in PHP 7.3.7RC2, so should not be listed
here.

5 years agosimple ignore arguments in exceptions implementation
Joe Watkins [Mon, 17 Jun 2019 18:51:52 +0000 (20:51 +0200)]
simple ignore arguments in exceptions implementation

5 years agoImplement SQLite extended result code functionality
Robert Kopack [Tue, 2 Jul 2019 10:59:01 +0000 (12:59 +0200)]
Implement SQLite extended result code functionality

5 years agoupdate NEWS [ci skip]
SjonHortensius [Tue, 2 Jul 2019 10:22:48 +0000 (12:22 +0200)]
update NEWS [ci skip]

add #2684

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Tue, 2 Jul 2019 10:28:46 +0000 (12:28 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 2 Jul 2019 10:28:37 +0000 (12:28 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix bug #78138: opcache.validate_permission incorrectly works with PHAR files
Alex Scott [Tue, 11 Jun 2019 14:31:07 +0000 (18:31 +0400)]
Fix bug #78138: opcache.validate_permission incorrectly works with PHAR files

opcache incorrectly handles PHAR files when opcache.validate_permission
option enabled, because it calls

  access("phar://path-to/file.phar/path/inside.php", R_OK);

rather than

  access("path-to/file.phar", R_OK)

5 years agoPDO: support username & password specified in DSN
Sjon Hortensius [Mon, 14 Aug 2017 09:41:47 +0000 (11:41 +0200)]
PDO: support username & password specified in DSN

5 years agoFix opcache huge page mapping on FreeBSD
David Carlier [Mon, 1 Jul 2019 19:23:02 +0000 (20:23 +0100)]
Fix opcache huge page mapping on FreeBSD

Too much room were given process mappings and were not unmapped.

Closes GH-4345.

5 years agoFix clang build
Nikita Popov [Tue, 2 Jul 2019 08:16:55 +0000 (10:16 +0200)]
Fix clang build

5 years agoUpdate proto comment for proc_open
Nikita Popov [Mon, 1 Jul 2019 17:02:39 +0000 (19:02 +0200)]
Update proto comment for proc_open

5 years agoRemove unused (module|request)_shutdown_for_exec
Nikita Popov [Mon, 1 Jul 2019 17:01:50 +0000 (19:01 +0200)]
Remove unused (module|request)_shutdown_for_exec

5 years agoFixed build without global register variables
Dmitry Stogov [Tue, 2 Jul 2019 08:03:22 +0000 (11:03 +0300)]
Fixed build without global register variables

5 years agoSeparate slow code
Dmitry Stogov [Mon, 1 Jul 2019 22:16:34 +0000 (01:16 +0300)]
Separate slow code

5 years agoUse string destructor instead of general zval_ptr_dtor_nogc()
Dmitry Stogov [Mon, 1 Jul 2019 22:14:33 +0000 (01:14 +0300)]
Use string destructor instead of general zval_ptr_dtor_nogc()

5 years agoEliminate exception checks
Dmitry Stogov [Mon, 1 Jul 2019 22:11:41 +0000 (01:11 +0300)]
Eliminate exception checks

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 1 Jul 2019 16:13:14 +0000 (18:13 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Add missing SKIPIFs

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 1 Jul 2019 16:12:28 +0000 (18:12 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add missing SKIPIFs

5 years agoAdd missing SKIPIFs
Christoph M. Becker [Mon, 1 Jul 2019 16:11:13 +0000 (18:11 +0200)]
Add missing SKIPIFs

All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.

5 years agoSetup msan on azure
Nikita Popov [Mon, 1 Jul 2019 08:26:29 +0000 (10:26 +0200)]
Setup msan on azure

This uses a separate job template, because msan requires all used
libraries (apart from glibc) to be instrumented, so we can't link
any external libraries unless we recompile them. As such, we need
a much more minimal configure.

5 years agoGenerate less code in compile time binary op test
Nikita Popov [Mon, 1 Jul 2019 14:25:28 +0000 (16:25 +0200)]
Generate less code in compile time binary op test

Don't generate try {} blocks for the operations that don't throw.

5 years agoSkip perf-sensitive fileinfo tests
Nikita Popov [Mon, 1 Jul 2019 11:20:03 +0000 (13:20 +0200)]
Skip perf-sensitive fileinfo tests

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 1 Jul 2019 15:24:33 +0000 (17:24 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Add missing SKIPIFs

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 1 Jul 2019 15:22:55 +0000 (17:22 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add missing SKIPIFs

5 years agoAdd missing SKIPIFs
Christoph M. Becker [Mon, 1 Jul 2019 13:01:24 +0000 (15:01 +0200)]
Add missing SKIPIFs

All these tests are meant to run with OPcache available, and some will
even fail inevitably without it, so we add OPcache as SKIPIF
requirement.

5 years agoopcache huge pages: Little fix for FreeBSD
David Carlier [Mon, 1 Jul 2019 14:07:55 +0000 (14:07 +0000)]
opcache huge pages: Little fix for FreeBSD

Calculating the vm entries size beforehand, as we could
possibly miss few entries.

Closes GH-4344.

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 1 Jul 2019 14:44:54 +0000 (16:44 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix brittle test

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Mon, 1 Jul 2019 14:43:47 +0000 (16:43 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix brittle test

5 years agoFix brittle test
Christoph M. Becker [Mon, 1 Jul 2019 14:41:20 +0000 (16:41 +0200)]
Fix brittle test

This test is easily tripped by former test runs with other PHP
versions.  To avoid such false positives, we check that there is at
least one respective OPcache file, and that all found OPcache user ID
folders have exactly 32 hexadecimal digits.

5 years agoInitialize last_line in phpdbg globals
Nikita Popov [Mon, 1 Jul 2019 14:13:50 +0000 (16:13 +0200)]
Initialize last_line in phpdbg globals

5 years agoMicro-optimization
Dmitry Stogov [Mon, 1 Jul 2019 13:57:25 +0000 (16:57 +0300)]
Micro-optimization

5 years agoFixed GOTO VM
Dmitry Stogov [Mon, 1 Jul 2019 12:50:53 +0000 (15:50 +0300)]
Fixed GOTO VM

5 years agoRemove TSRM_BASIC_CHECKS
Peter Kokot [Mon, 1 Jul 2019 11:23:41 +0000 (13:23 +0200)]
Remove TSRM_BASIC_CHECKS

This macro is not needed anymore. The AC_PROG_CC is done in the main
configure.ac file and the ranlib check is done by the bundled libtool
macros.

Closes GH-4339

5 years agoRemove not needed checks for functions
Peter Kokot [Mon, 1 Jul 2019 11:20:35 +0000 (13:20 +0200)]
Remove not needed checks for functions

The following functions don't need to be checked anymore since the
they are not used across the code or the symbols aren't used anymore:
- cuserid (not used)
- lrand48 (not used and removed via
  6d6ef7aacc7f9b17709d2f93b70b359c75011f89)
- random (check is not used)
- srand48 (not used)
- srandom (not used)
- strdup (check is not used)

and the unused check symbols:
- HAVE_CUSERID
- HAVE_LRAND48
- HAVE_RANDOM
- HAVE_SRAND48
- HAVE_SRANDOM
- HAVE_STRDUP

Closes GH-4338

5 years agoRemove unused check for struct cmsghdr
Peter Kokot [Mon, 1 Jul 2019 11:13:51 +0000 (13:13 +0200)]
Remove unused check for struct cmsghdr

The result of this check is to whether to define the HAVE_CMSGHDR symbol
or not. The HAVE_CMSGHDR is never used in the code and it has been
removed via 90289924c031c5b0b2aa1f99ecf317640c926a62.

Closes GH-4337

5 years agoClarify #if indentation in time limit implemementation
Nikita Popov [Mon, 1 Jul 2019 10:18:21 +0000 (12:18 +0200)]
Clarify #if indentation in time limit implemementation

5 years agoRun file_put_contents_variantion8 in separate directory
Nikita Popov [Mon, 1 Jul 2019 09:54:05 +0000 (11:54 +0200)]
Run file_put_contents_variantion8 in separate directory

There are other tests that try to read these files.

5 years agoFix unused variable warnings when mbregex disabled
Nikita Popov [Mon, 1 Jul 2019 09:13:12 +0000 (11:13 +0200)]
Fix unused variable warnings when mbregex disabled

5 years agoMsan: Unpoison buffer written by file cache
Nikita Popov [Mon, 1 Jul 2019 09:02:31 +0000 (11:02 +0200)]
Msan: Unpoison buffer written by file cache

It would be great if this were fully initialized, but it's not
really a problem either (as long as we don't care about reproducible
file cache), so ignore this for now.

5 years agoDon't use fast_memcpy under msan
Nikita Popov [Mon, 1 Jul 2019 08:44:44 +0000 (10:44 +0200)]
Don't use fast_memcpy under msan

5 years agoMsan: Unpoison getrandom() syscall result
Nikita Popov [Mon, 1 Jul 2019 08:37:34 +0000 (10:37 +0200)]
Msan: Unpoison getrandom() syscall result

5 years agoAdd some tolerance to time_sleep_until() test
Nikita Popov [Mon, 1 Jul 2019 07:43:16 +0000 (09:43 +0200)]
Add some tolerance to time_sleep_until() test

This has been sporadically failing on macos for a while. We've tried
a couple of things (using int arithmetic, normalizing to gettimeofday),
but this issue remains. I'm adding some tolerance to the test to
avoid CI failures.

5 years agoDisable RTLD_DEEPBIND under memory sanitizer
Nikita Popov [Fri, 28 Jun 2019 16:15:38 +0000 (18:15 +0200)]
Disable RTLD_DEEPBIND under memory sanitizer

This was already done for address sanitizer.

5 years agoUpdate NEWS [ci skip]
Peter Kokot [Mon, 1 Jul 2019 01:10:09 +0000 (03:10 +0200)]
Update NEWS [ci skip]

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Mon, 1 Jul 2019 00:55:02 +0000 (02:55 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Update NEWS [ci skip]

5 years agoUpdate NEWS [ci skip]
Peter Kokot [Mon, 1 Jul 2019 00:54:42 +0000 (02:54 +0200)]
Update NEWS [ci skip]

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Peter Kokot [Mon, 1 Jul 2019 00:53:10 +0000 (02:53 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix bug #78197: PCRE2 version check

5 years agoFix bug #78197: PCRE2 version check
Peter Kokot [Sun, 23 Jun 2019 13:46:47 +0000 (15:46 +0200)]
Fix bug #78197: PCRE2 version check

When external PCRE library version is of format ##.##-RC# the check
failed.

5 years agoUpdate changelogs [ci skip]
Peter Kokot [Sun, 30 Jun 2019 23:35:29 +0000 (01:35 +0200)]
Update changelogs [ci skip]

5 years agoSync functions checks
Peter Kokot [Fri, 28 Jun 2019 21:10:37 +0000 (23:10 +0200)]
Sync functions checks

Removed unused checks:
- mbsinit check removed, HAVE_MBSINIT removed (not used in php-src)
- mempcpy check removed, HAVE_MEMPCPY removed (not used in php-src anymore since
  560ed89bfbb56526251e9bd2fbcb27e5932641d8 which uses PHP's own implementation)
- strpncpy check removed, added via a8c9e893b6911c785f698d724b2ff61e7aebb737 and
  not used.
- setpgid check removed since HAVE_SETPGID is not used

Moved to a central configure.ac:
- fpclass
- mbrlen moved to configure.ac (since the HAVE_MBRLEN is used accross the php-src)
- sigprocmask
- getcwd
- getwd
- glob
- strfmon
- nice

Duplicated checks removed:
- gethostname
- getlogin
- getpwuid_r
- socketpair

- mprotect check simplified