]> granicus.if.org Git - php/log
php
5 years agoMerge branch 'PHP-7.4'
Anatol Belski [Sat, 29 Jun 2019 14:53:10 +0000 (16:53 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix magic data

5 years agoFix magic data
Anatol Belski [Sat, 29 Jun 2019 14:51:41 +0000 (16:51 +0200)]
Fix magic data

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Sat, 29 Jun 2019 12:51:40 +0000 (14:51 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix memory leak in COM ctor

5 years agoFix memory leak in COM ctor
Christoph M. Becker [Sat, 29 Jun 2019 12:47:06 +0000 (14:47 +0200)]
Fix memory leak in COM ctor

We have to free strings returned from php_com_olestring_to_string().

5 years agoMerge branch 'PHP-7.4'
Anatol Belski [Sat, 29 Jun 2019 11:31:56 +0000 (13:31 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix typo
  Add tests from fix #78183 from PHP-7.2
  Fix #78183: finfo_file shows wrong mime-type for .tga file

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Anatol Belski [Sat, 29 Jun 2019 11:31:22 +0000 (13:31 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix typo
  Add tests from fix #78183 from PHP-7.2
  Fix #78183: finfo_file shows wrong mime-type for .tga file

5 years agoFix typo
Anatol Belski [Sat, 29 Jun 2019 11:30:35 +0000 (13:30 +0200)]
Fix typo

5 years agoAdd tests from fix #78183 from PHP-7.2
Joshua Westerheide [Sat, 29 Jun 2019 09:59:08 +0000 (11:59 +0200)]
Add tests from fix #78183 from PHP-7.2

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 29 Jun 2019 11:29:41 +0000 (13:29 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #78183: finfo_file shows wrong mime-type for .tga file

5 years agoFix #78183: finfo_file shows wrong mime-type for .tga file
Joshua Westerheide [Fri, 28 Jun 2019 13:07:14 +0000 (15:07 +0200)]
Fix #78183: finfo_file shows wrong mime-type for .tga file

Due to a bug in the underlying libmagic 5.31, .tga images returned mime type "image/x-tgaimage/x-tga".

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Sat, 29 Jun 2019 03:28:12 +0000 (05:28 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  implement support for workers in cli-server on platforms supporting fork

5 years agoimplement support for workers in cli-server on platforms supporting fork
Joe Watkins [Thu, 27 Jun 2019 13:09:58 +0000 (15:09 +0200)]
implement support for workers in cli-server on platforms supporting fork

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Sat, 29 Jun 2019 03:26:38 +0000 (05:26 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  add ini config details to php-config

5 years agoadd ini config details to php-config
Joe Watkins [Wed, 26 Jun 2019 10:49:01 +0000 (12:49 +0200)]
add ini config details to php-config

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Fri, 28 Jun 2019 18:19:20 +0000 (20:19 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Clean up files after the tests are run

5 years agoClean up files after the tests are run
Peter Kokot [Thu, 27 Jun 2019 00:21:31 +0000 (02:21 +0200)]
Clean up files after the tests are run

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Fri, 28 Jun 2019 18:14:29 +0000 (20:14 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Update changelogs [ci skip]
  Remove HAVE_ERRNO_H from libgd

5 years agoUpdate changelogs [ci skip]
Peter Kokot [Fri, 28 Jun 2019 18:14:22 +0000 (20:14 +0200)]
Update changelogs [ci skip]

5 years agoRemove HAVE_ERRNO_H from libgd
Peter Kokot [Thu, 27 Jun 2019 22:58:26 +0000 (00:58 +0200)]
Remove HAVE_ERRNO_H from libgd

The check for errno.h has been removed via
50b9ef8d9435d23be40cea7fb484a02e99fdb617

Upstream libgd library is also patched via
https://github.com/libgd/libgd/commit/1e7f93922fb3adf9f131d7e94aa13386062ffe11

5 years agoIncrease timeout of asan job on master
Nikita Popov [Fri, 28 Jun 2019 15:47:55 +0000 (17:47 +0200)]
Increase timeout of asan job on master

This will additionally be testing the JIT and 120 is cutting it
close for that.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 15:47:45 +0000 (17:47 +0200)]
Merge branch 'PHP-7.4'

5 years agoUse strcmp() in phpdbg_eol_global_update
Nikita Popov [Fri, 28 Jun 2019 15:24:30 +0000 (17:24 +0200)]
Use strcmp() in phpdbg_eol_global_update

memcmp() only makes sense on equal length strings, and here we don't
know anything about the length of the input.

5 years agoDisable ifunc resolvers if memory sanitizer is used
Nikita Popov [Fri, 28 Jun 2019 15:15:56 +0000 (17:15 +0200)]
Disable ifunc resolvers if memory sanitizer is used

Just marking them as no_sanitize("memory") is unforunately not
sufficient, as the function still gets instrumented -- the attribute
only disables reporting.

5 years agoRemove phpdbg_xml_asprintf()
Nikita Popov [Fri, 28 Jun 2019 14:59:52 +0000 (16:59 +0200)]
Remove phpdbg_xml_asprintf()

Clang doesn't like the use of promoted zend_bool in va_start. As
the function isn't used anyway, I'm simply dropping it...

5 years agoMark ifunc resolver functions as unused
Nikita Popov [Fri, 28 Jun 2019 14:55:54 +0000 (16:55 +0200)]
Mark ifunc resolver functions as unused

It looks like clang doesn't see that these are used through
__attribute__((ifunc)) and generates a warning.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 14:39:57 +0000 (16:39 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix arginfo leak in disable_functions
Nikita Popov [Fri, 28 Jun 2019 14:36:58 +0000 (16:36 +0200)]
Fix arginfo leak in disable_functions

Arginfo is allocated if types are used, we need to free it.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 14:11:37 +0000 (16:11 +0200)]
Merge branch 'PHP-7.4'

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Fri, 28 Jun 2019 14:09:23 +0000 (16:09 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Fri, 28 Jun 2019 14:09:09 +0000 (16:09 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

5 years agoFix bugs in AST printer
sunnyeo [Fri, 28 Jun 2019 14:06:01 +0000 (16:06 +0200)]
Fix bugs in AST printer

Closes GH-4324.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 13:05:00 +0000 (15:05 +0200)]
Merge branch 'PHP-7.4'

5 years agoSet up asan+ubsan scheduled build on azure
Nikita Popov [Thu, 20 Jun 2019 14:51:14 +0000 (16:51 +0200)]
Set up asan+ubsan scheduled build on azure

Also adds an --asan flag to run-tests.php to setup all the necessary
environment variables. Some tests are marked as skipped because they
are incompatible with asan or too slow.

I'm basing this on the DEBUG_ZTS build, which seems to give us the
most mileage.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 12:48:08 +0000 (14:48 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix out of bounds read in sccp
Nikita Popov [Fri, 28 Jun 2019 10:38:28 +0000 (12:38 +0200)]
Fix out of bounds read in sccp

5 years agoAvoid reliance on arena details on phpdbg oplog
Nikita Popov [Fri, 28 Jun 2019 10:32:54 +0000 (12:32 +0200)]
Avoid reliance on arena details on phpdbg oplog

Instead of guessing what the address of the first arena allocation
is going to be, embed the sentinel in the oplog_list structure
directly.

5 years agoUpdate error message in libmysql test
Nikita Popov [Fri, 28 Jun 2019 12:36:10 +0000 (14:36 +0200)]
Update error message in libmysql test

5 years agoFix compilation errors when building against libmysql
Sebastian Pop [Fri, 21 Jun 2019 07:15:35 +0000 (07:15 +0000)]
Fix compilation errors when building against libmysql

Closes GH-4316.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 10:45:26 +0000 (12:45 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix out-of-bounds read in array compilation
Nikita Popov [Fri, 28 Jun 2019 08:24:56 +0000 (10:24 +0200)]
Fix out-of-bounds read in array compilation

UNPACK elements only have one child. Don't access the second one
until we have excluded this case.

5 years agoAdd tracked arena allocator
Nikita Popov [Fri, 28 Jun 2019 08:19:18 +0000 (10:19 +0200)]
Add tracked arena allocator

Available under -DZEND_TRACK_ARENA_ALLOC. This will use the system
allocator combined with arena checkpointing & release semantics
and allows analyzing arena usage under asan/valgrind.

I've sacrificed the duplicate arena implementation in mysqlnd, as
the integration with mysqlnd alloc is not worth the code duplication
to me.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 28 Jun 2019 10:38:17 +0000 (12:38 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed

5 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Fri, 28 Jun 2019 10:37:28 +0000 (12:37 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed

5 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Fri, 28 Jun 2019 10:36:33 +0000 (12:36 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed

5 years agoFix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
Vincent [Wed, 26 Jun 2019 09:37:08 +0000 (11:37 +0200)]
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed

Reset stmt->columns when column count changed on new execution of prepared statement

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 09:10:25 +0000 (11:10 +0200)]
Merge branch 'PHP-7.4'

5 years agoAdd support for proc_open() with a command array
Nikita Popov [Mon, 24 Jun 2019 10:53:40 +0000 (12:53 +0200)]
Add support for proc_open() with a command array

In this case the progarm will be executed directly, without a shell.
On Linux the arguments are passed directly to execvp and no escaping
is necessary. On Windows we construct a command string using escaping
with the default Windows command-line argument parsing method described
at https://docs.microsoft.com/en-us/cpp/cpp/parsing-cpp-command-line-arguments.

Apart from avoiding the issue of argument escaping, passing an array
and bypassing shell has the advantage of allowing proper signal
delivery to the opened process (rather than the shell).

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 28 Jun 2019 09:03:27 +0000 (12:03 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Reduce overhead

5 years agoReduce overhead
Dmitry Stogov [Fri, 28 Jun 2019 09:03:01 +0000 (12:03 +0300)]
Reduce overhead

5 years agoMerge branch 'PHP-7.4'
Joe Watkins [Fri, 28 Jun 2019 08:27:39 +0000 (10:27 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  implement tsrm_is_shutdown API

5 years agoimplement tsrm_is_shutdown API
Joe Watkins [Wed, 26 Jun 2019 11:18:50 +0000 (13:18 +0200)]
implement tsrm_is_shutdown API

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 28 Jun 2019 08:24:15 +0000 (10:24 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Use the portable zend_strndup() instead of strndup()

5 years agoUse the portable zend_strndup() instead of strndup()
Christoph M. Becker [Fri, 28 Jun 2019 08:20:50 +0000 (10:20 +0200)]
Use the portable zend_strndup() instead of strndup()

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Fri, 28 Jun 2019 07:44:13 +0000 (10:44 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed use-after-free

5 years agoFixed use-after-free
Dmitry Stogov [Fri, 28 Jun 2019 07:43:56 +0000 (10:43 +0300)]
Fixed use-after-free

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Fri, 28 Jun 2019 07:19:49 +0000 (09:19 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix mysqlnd memory leak
Nikita Popov [Thu, 27 Jun 2019 14:52:19 +0000 (16:52 +0200)]
Fix mysqlnd memory leak

The actual leak is observed in ext/pdo_mysql/tests/bug_74376.phpt.
The persistent connection leaks because a refcount decrement on a
result is missed. The refcount decrement is missed because
free_result_contents is used, rather than free_result.

Looking at other uses of free_result_contents, it looks like they
could also suffer from this problem. Apart from one case,
free_result_contents is always used to release the result entirely
(I've adjusted the one differing case to only free meta), so I'm
moving most of the logic from free_result into free_result_contents.
The only difference is now that free_result will skip_result first.

5 years agoFree ZTS lock in opcache
Nikita Popov [Thu, 27 Jun 2019 14:01:13 +0000 (16:01 +0200)]
Free ZTS lock in opcache

For some reason this only shows up as a leak when using phpdbg.

5 years agoFix init_file leak in phpdbg
Nikita Popov [Thu, 27 Jun 2019 13:43:50 +0000 (15:43 +0200)]
Fix init_file leak in phpdbg

5 years agorun-tests: Don't pass --INI-- settings to --SKIPIF--
Nikita Popov [Thu, 27 Jun 2019 12:07:20 +0000 (14:07 +0200)]
run-tests: Don't pass --INI-- settings to --SKIPIF--

If we're testing ini settings that cause startup failures, we'll
never get to that SKIPIF block...

Also change settings2param to return a value instead of modifying
(to a different type no less!) in place.

5 years agoFix custom heap free
Nikita Popov [Fri, 28 Jun 2019 07:13:45 +0000 (09:13 +0200)]
Fix custom heap free

This seems to be designed around the use-case where the custom
allocator is a wrapper around ZMM.

5 years agoMerge branch 'PHP-7.4'
Sara Golemon [Thu, 27 Jun 2019 23:28:04 +0000 (19:28 -0400)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Bugfix #78208 Needs rehash with an unknown algo should always return true.

5 years agoBugfix #78208 Needs rehash with an unknown algo should always return true.
Sara Golemon [Thu, 27 Jun 2019 23:00:32 +0000 (19:00 -0400)]
Bugfix #78208 Needs rehash with an unknown algo should always return true.

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 27 Jun 2019 22:32:08 +0000 (00:32 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Catch up with some recent changes [ci skip]

5 years agoCatch up with some recent changes [ci skip]
Peter Kokot [Tue, 25 Jun 2019 20:32:54 +0000 (22:32 +0200)]
Catch up with some recent changes [ci skip]

- Mention mysqli::stat()
- Mention removal of HAVE_* for always defined extensions
- Mention removed symbols defined during the build

5 years agoFix typo
Peter Kokot [Thu, 27 Jun 2019 22:26:24 +0000 (00:26 +0200)]
Fix typo

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 27 Jun 2019 22:13:25 +0000 (00:13 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove HAVE_STRCOLL check

5 years agoRemove HAVE_STRCOLL check
Peter Kokot [Sun, 23 Jun 2019 13:51:24 +0000 (15:51 +0200)]
Remove HAVE_STRCOLL check

The strcoll function is defined in the C89 standard and should be
on today's systems always available via the <string.h> header.

https://port70.net/~nsz/c/c89/c89-draft.html#4.11.4.3

- Remove also SKIPIF strcoll check in test

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 27 Jun 2019 21:29:11 +0000 (23:29 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols

5 years agoSync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols
Peter Kokot [Wed, 26 Jun 2019 01:01:45 +0000 (03:01 +0200)]
Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols

The hash extension is always available since PHP-7.4. The symbol
HAVE_HASH_EXT is kept for BC reasons and removed in PHP-8.0.

This patch also removes the PHAR_HASH_OK since it is no longer
relevant.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 27 Jun 2019 14:16:57 +0000 (16:16 +0200)]
Merge branch 'PHP-7.4'

5 years agoRemove posix_getlogin_basic.phpt test
Nikita Popov [Thu, 27 Jun 2019 14:15:13 +0000 (16:15 +0200)]
Remove posix_getlogin_basic.phpt test

The premise of this test (that the getlogin user has to be the same
as the geteuid user) is incorrect.

5 years agoFix opcache blacklist leak
Nikita Popov [Thu, 27 Jun 2019 11:09:14 +0000 (13:09 +0200)]
Fix opcache blacklist leak

Don't recompute (and leak) the regex for every glob element, only
do this once at the end.

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 27 Jun 2019 12:21:49 +0000 (14:21 +0200)]
Merge branch 'PHP-7.4'

5 years agoFix phpdbg shutdown order
Nikita Popov [Thu, 27 Jun 2019 10:46:06 +0000 (12:46 +0200)]
Fix phpdbg shutdown order

In particular, make sure that everything using zmm is released
before zmm is shut down. phpdbg currently gets away with this,
because either a) its custom handlers are used and no auto-free
happens or b) the system allocator is used and no auto-free happens.
With the tracking allocator for asan this no longer works.

5 years agoDon't use zmm for PHPDBG_G(exec)
Nikita Popov [Thu, 27 Jun 2019 10:41:41 +0000 (12:41 +0200)]
Don't use zmm for PHPDBG_G(exec)

Uses system allocator when backing up settings ... let's avoid
unnecessary confusion.

5 years agoFix persistent XML memory leaks in SOAP
Nikita Popov [Thu, 27 Jun 2019 08:57:49 +0000 (10:57 +0200)]
Fix persistent XML memory leaks in SOAP

SOAP uses a horrible bailout based error handling approach -- avoid
leaking persistent XML memory by catching bailouts in a number of
places.

5 years agoAdd tracked allocator mode
Nikita Popov [Thu, 27 Jun 2019 08:30:45 +0000 (10:30 +0200)]
Add tracked allocator mode

In this case we will use the system allocator, but still remember
all allocations and free them the same way that Zend MM does. This
allows us to accurately model leak behavior.

Enabled using USE_ZEND_ALLOC=0 USE_TRACKED_ALLOC=1.

5 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Thu, 27 Jun 2019 11:05:43 +0000 (13:05 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Show actual enchant version if possible

5 years agoShow actual enchant version if possible
Christoph M. Becker [Thu, 27 Jun 2019 11:04:49 +0000 (13:04 +0200)]
Show actual enchant version if possible

As of libenchant 1.6.0 there is enchant_get_version()[1], so we use it,
if available, to show the actual enchant version in the PHP info.  We
also drop the fake ENCHANT_VERSION_STRING altogether, but stick with
showing version 1.5.x if at least HAVE_ENCHANT_BROKER_SET_PARAM is
defined.

Future scope: we may consider requiring enchant 1.6.0 (or later), since
this has been released in April 2010, and likely is available
everywhere.

[1] <https://www.abisource.com/projects/enchant/>

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Thu, 27 Jun 2019 10:11:37 +0000 (13:11 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Separate common code abd eliminate useless checks

5 years agoSeparate common code abd eliminate useless checks
Dmitry Stogov [Thu, 27 Jun 2019 10:11:08 +0000 (13:11 +0300)]
Separate common code abd eliminate useless checks

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Thu, 27 Jun 2019 08:28:14 +0000 (11:28 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Inline hot path

5 years agoInline hot path
Dmitry Stogov [Thu, 27 Jun 2019 08:27:53 +0000 (11:27 +0300)]
Inline hot path

5 years agoMerge branch 'PHP-7.4'
Nikita Popov [Thu, 27 Jun 2019 07:48:47 +0000 (09:48 +0200)]
Merge branch 'PHP-7.4'

5 years agoMake zend_hash_rehash() a void function
Andrey Gromov [Mon, 24 Jun 2019 08:56:50 +0000 (11:56 +0300)]
Make zend_hash_rehash() a void function

It always succeeds.

Closes GH-4304.

5 years agoFix persistent connection leak in mysqli
Nikita Popov [Wed, 26 Jun 2019 14:51:12 +0000 (16:51 +0200)]
Fix persistent connection leak in mysqli

5 years agoFix use-after-free in stream freeing during shutdown
Nikita Popov [Wed, 26 Jun 2019 08:58:29 +0000 (10:58 +0200)]
Fix use-after-free in stream freeing during shutdown

Streams will be freed in an unpredictable order during shutdown.
Ignore explicit calls to php_stream_close() entirely to avoid
use-after-free -- instead let the stream resource destructor
deal with it. We have to account for a few special cases:

 * Enclosed streams should be freed, as the resource destructor
   will forward to the enclosing stream.
 * Stream cookies also directly free streams, because we delegate
   to the cookie destruction if one exists.
 * Mysqlnd also directly frees streams, because it explicitly
   removes stream resources (because mysqlnd!)

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Thu, 27 Jun 2019 00:45:31 +0000 (02:45 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Clean headers checks

5 years agoClean headers checks
Peter Kokot [Sun, 23 Jun 2019 20:04:03 +0000 (22:04 +0200)]
Clean headers checks

Some headers were checked multiple times in the main configure.ac file
and in the bundled extensions or SAPIs themselves. Also many of these
checks are then used accross other extensions or SAPIs so a central
configure.ac makes most sense for these checks.

5 years agoMerge branch 'PHP-7.4'
Dmitry Stogov [Wed, 26 Jun 2019 23:25:57 +0000 (02:25 +0300)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Avoid double checks on early binding

5 years agoAvoid double checks on early binding
Dmitry Stogov [Wed, 26 Jun 2019 23:13:06 +0000 (02:13 +0300)]
Avoid double checks on early binding

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Wed, 26 Jun 2019 23:00:33 +0000 (01:00 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove warnings for bison and re2c checks

5 years agoRemove warnings for bison and re2c checks
Peter Kokot [Sun, 23 Jun 2019 13:53:19 +0000 (15:53 +0200)]
Remove warnings for bison and re2c checks

This patch removes warnings when lexer and parser files are already
generated. For example, when downloading a PHP release. Realistically,
it is not so trivial to rebuild lexer and parser files without removing
them first. And considering that tarballs don't have cleaning tools
such as Git, this would require manual removali.

Related also to https://bugs.gentoo.org/593278

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Wed, 26 Jun 2019 22:27:43 +0000 (00:27 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix concurrent testing of bug 61964

5 years agoFix concurrent testing of bug 61964
Peter Kokot [Tue, 25 Jun 2019 19:23:07 +0000 (21:23 +0200)]
Fix concurrent testing of bug 61964

When tests are run concurrently using the -j option there might be a
change of failure and writing to the same directory from both tests.

Use test filenames for generated temp dirs

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Wed, 26 Jun 2019 22:25:14 +0000 (00:25 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix posix_errno test without PCNTL dep

5 years agoFix posix_errno test without PCNTL dep
Peter Kokot [Tue, 25 Jun 2019 18:21:16 +0000 (20:21 +0200)]
Fix posix_errno test without PCNTL dep

When PCNTL extension is not enabled, the SIGKILL constant is also not
available.

5 years agoMerge branch 'PHP-7.4'
Peter Kokot [Wed, 26 Jun 2019 21:51:46 +0000 (23:51 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Remove unused HAVE_DATE and HAVE_SPL symbols

5 years agoRemove unused HAVE_DATE and HAVE_SPL symbols
Peter Kokot [Wed, 26 Jun 2019 00:36:44 +0000 (02:36 +0200)]
Remove unused HAVE_DATE and HAVE_SPL symbols

These two are never defined anymore since PHP 7.4 and can be
considered to have always available date and hash extensions.