]> granicus.if.org Git - php/log
php
4 years agoPrevent taking side traces for exceptional cases. Always exit to VM interpreter.
Dmitry Stogov [Thu, 7 May 2020 09:49:01 +0000 (12:49 +0300)]
Prevent taking side traces for exceptional cases. Always exit to VM interpreter.

4 years agoRemove no_language from mbfl_string
Nikita Popov [Thu, 7 May 2020 09:36:57 +0000 (11:36 +0200)]
Remove no_language from mbfl_string

This is not actually used for anything and just causes confusion.

4 years agoOnly allow "pass" as input/output encoding
Nikita Popov [Thu, 7 May 2020 08:45:49 +0000 (10:45 +0200)]
Only allow "pass" as input/output encoding

"pass" is not a real encoding, it just means "don't perform any
conversion". Using it as an internal encoding or passing it to
any of the mbstring() function will not work (and on master commonly
assert).

4 years agoRename the recently introduced Sysvsem class to SysvSemaphore
Máté Kocsis [Thu, 7 May 2020 08:21:44 +0000 (10:21 +0200)]
Rename the recently introduced Sysvsem class to SysvSemaphore

4 years agoReturn false from failed mb_convert_variables()
Nikita Popov [Thu, 7 May 2020 08:15:57 +0000 (10:15 +0200)]
Return false from failed mb_convert_variables()

If we fail to detect the encoding return false, just like
mb_convert_encoding() does, and the implementation here clearly
intended. Previously the "pass" pseudo-incoding was returned.

4 years agoEnable test on Windows
Christoph M. Becker [Thu, 7 May 2020 07:19:34 +0000 (09:19 +0200)]
Enable test on Windows

4 years agoFixed false alarm about tmp_name maybe unitialized
Xinchen Hui [Thu, 7 May 2020 06:16:02 +0000 (14:16 +0800)]
Fixed false alarm about tmp_name maybe unitialized

4 years agoFixed comment
Dmitry Stogov [Thu, 7 May 2020 06:05:33 +0000 (09:05 +0300)]
Fixed comment

4 years agoFix assertion failure when failing to detect encoding
Nikita Popov [Wed, 6 May 2020 20:55:03 +0000 (22:55 +0200)]
Fix assertion failure when failing to detect encoding

Looks like prior to 7.3 this just passed the original string
through. Since 7.3 it returns false. Let's stick with that
behavior.

4 years agoAvoid Program Counter guard in side trace started from Fake Init Fcall guard.
Dmitry Stogov [Wed, 6 May 2020 20:16:45 +0000 (23:16 +0300)]
Avoid Program Counter guard in side trace started from Fake Init Fcall guard.

4 years agoUse int|string Fast ZPP macro in Reflection
George Peter Banyard [Sat, 2 May 2020 22:35:13 +0000 (00:35 +0200)]
Use int|string Fast ZPP macro in Reflection

Moreover, throw a more appropriate ValueError in case the integer
position provided is less than 0.

Closes GH-5513

4 years agoInitial support for IS_INDIRECT. Avoid type guards for IS_INDIRECT.
Dmitry Stogov [Wed, 6 May 2020 19:27:38 +0000 (22:27 +0300)]
Initial support for IS_INDIRECT. Avoid type guards for IS_INDIRECT.

4 years agoPromote warning to exception in ZipArchive::extractTo()
Máté Kocsis [Wed, 6 May 2020 07:26:48 +0000 (09:26 +0200)]
Promote warning to exception in ZipArchive::extractTo()

Closes GH-5516

4 years agoFix UNKNOWN default values in ext/spl
Máté Kocsis [Sun, 3 May 2020 11:19:44 +0000 (13:19 +0200)]
Fix UNKNOWN default values in ext/spl

4 years agoFix UNKNOWN default values in ext/sqlite3
Máté Kocsis [Sun, 3 May 2020 11:00:30 +0000 (13:00 +0200)]
Fix UNKNOWN default values in ext/sqlite3

4 years agoFix UNKNOWN default values in ext/xml
Máté Kocsis [Sun, 3 May 2020 10:58:02 +0000 (12:58 +0200)]
Fix UNKNOWN default values in ext/xml

4 years agoFix UNKNOWN default values in ext/xsl
Máté Kocsis [Sun, 3 May 2020 10:18:55 +0000 (12:18 +0200)]
Fix UNKNOWN default values in ext/xsl

4 years agoFix UNKNOWN default values in ext/zip
Máté Kocsis [Sun, 3 May 2020 09:49:31 +0000 (11:49 +0200)]
Fix UNKNOWN default values in ext/zip

4 years agoFix ZPP order in ext/zip
Máté Kocsis [Sun, 3 May 2020 09:41:32 +0000 (11:41 +0200)]
Fix ZPP order in ext/zip

4 years agoDrop BF_ASM constant as it's always 0
George Peter Banyard [Tue, 5 May 2020 22:45:42 +0000 (00:45 +0200)]
Drop BF_ASM constant as it's always 0

Closes GH-5531

4 years agoRemove out-dated comments
Christoph M. Becker [Wed, 6 May 2020 15:25:02 +0000 (17:25 +0200)]
Remove out-dated comments

4 years agoConvert resource to object in ext/sysvsem
Máté Kocsis [Fri, 1 May 2020 12:00:19 +0000 (14:00 +0200)]
Convert resource to object in ext/sysvsem

Closes GH-5508

4 years agoCareful cleanup
Dmitry Stogov [Wed, 6 May 2020 13:26:36 +0000 (16:26 +0300)]
Careful cleanup

4 years agoadd myself as enchant maintainer
Remi Collet [Wed, 6 May 2020 11:18:35 +0000 (13:18 +0200)]
add myself as enchant maintainer

4 years agoFix enchant stub
Christoph M. Becker [Wed, 6 May 2020 11:16:50 +0000 (13:16 +0200)]
Fix enchant stub

4 years agoenchant: bump license version
Remi Collet [Wed, 6 May 2020 11:13:19 +0000 (13:13 +0200)]
enchant: bump license version

4 years agoAdd zend_array_release() function
Nikita Popov [Wed, 6 May 2020 09:27:20 +0000 (11:27 +0200)]
Add zend_array_release() function

To complement zend_string_release() and zend_object_release().

4 years agoRevert "Move declaration at top of the block"
Nikita Popov [Wed, 6 May 2020 07:42:58 +0000 (09:42 +0200)]
Revert "Move declaration at top of the block"

This reverts commit b56f20385089703de7a3c9d89a9de4f9d14f56a3.

We use C99 now, this is not needed anymore.

4 years agoMove declaration at top of the block
Xinchen Hui [Wed, 6 May 2020 06:01:56 +0000 (14:01 +0800)]
Move declaration at top of the block

4 years agoUse correct variable
George Peter Banyard [Tue, 5 May 2020 20:12:31 +0000 (22:12 +0200)]
Use correct variable

This seems to stem from a copy paste, however there is no object variable in this function

4 years agoFix UNKNOWN default values in various extensions
Máté Kocsis [Sat, 2 May 2020 13:25:25 +0000 (15:25 +0200)]
Fix UNKNOWN default values in various extensions

Closes GH-5514

4 years agoMake numeric operations on resources, arrays and objects type errors
Nikita Popov [Wed, 1 Apr 2020 08:25:22 +0000 (10:25 +0200)]
Make numeric operations on resources, arrays and objects type errors

RFC: https://wiki.php.net/rfc/arithmetic_operator_type_checks

Closes GH-5331.

4 years agoAdd str_starts_with() and str_ends_with()
William Hudgins [Tue, 5 May 2020 13:57:39 +0000 (15:57 +0200)]
Add str_starts_with() and str_ends_with()

RFC: https://wiki.php.net/rfc/add_str_starts_with_and_ends_with_functions

Closes GH-5300.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Tue, 5 May 2020 09:41:31 +0000 (11:41 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79566: Private SHM is not private on Windows

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Tue, 5 May 2020 09:39:38 +0000 (11:39 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79566: Private SHM is not private on Windows

4 years agoFix #79566: Private SHM is not private on Windows
Christoph M. Becker [Tue, 5 May 2020 07:31:17 +0000 (09:31 +0200)]
Fix #79566: Private SHM is not private on Windows

We map the POSIX semantics of `IPC_PRIVATE` by creating unnamed file
mapping objects on Windows.  While that is not particularly useful for
ext/shmop, which is the only bundled extension which uses `shmget()`,
it may be useful for external extensions.

4 years agoFix mbfl default allocators
Nikita Popov [Mon, 4 May 2020 21:41:39 +0000 (23:41 +0200)]
Fix mbfl default allocators

Forgot to remove the persistent allocators from here.

4 years agoSpec mbfl allocators as infallible
Nikita Popov [Mon, 4 May 2020 21:17:54 +0000 (23:17 +0200)]
Spec mbfl allocators as infallible

And remove all NULL checks.

4 years agoRemove persistent allocators from libmbfl
Nikita Popov [Mon, 4 May 2020 21:10:17 +0000 (23:10 +0200)]
Remove persistent allocators from libmbfl

These functions are not used, and I don't think we have any plans
to ever use them.

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 4 May 2020 21:02:00 +0000 (23:02 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79561: dns_get_record() fails with DNS_ALL

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 4 May 2020 21:00:27 +0000 (23:00 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79561: dns_get_record() fails with DNS_ALL

4 years agoFix #79561: dns_get_record() fails with DNS_ALL
Christoph M. Becker [Mon, 4 May 2020 14:51:51 +0000 (16:51 +0200)]
Fix #79561: dns_get_record() fails with DNS_ALL

Since Windows has its own definitions of the `PHP_DNS_*` macros, we
have to use these when registering the PHP constants.

4 years agoChange the default PDO error mode to exceptions
AllenJB [Mon, 4 May 2020 18:24:06 +0000 (20:24 +0200)]
Change the default PDO error mode to exceptions

According to <https://www.php.net/manual/en/pdo.error-handling.php>.

4 years agoPerform isupper check using sse2 as well
Nikita Popov [Mon, 4 May 2020 17:14:12 +0000 (19:14 +0200)]
Perform isupper check using sse2 as well

Rather than just vectorizing the lowering, also vectorize the
check for uppercase characters, using the same method.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 4 May 2020 14:30:34 +0000 (16:30 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #79548

4 years agoFixed bug #79548
Nikita Popov [Mon, 4 May 2020 14:27:45 +0000 (16:27 +0200)]
Fixed bug #79548

When duplicating user functions with static variables, make sure
that we init a new map ptr slot for the static variables.

4 years agoExtract one more function from proc_open() implementation
Nikita Popov [Mon, 4 May 2020 13:24:23 +0000 (15:24 +0200)]
Extract one more function from proc_open() implementation

4 years agoClean up proc_open() implementation
Alex Dowad [Fri, 1 May 2020 11:03:16 +0000 (13:03 +0200)]
Clean up proc_open() implementation

Closes GH-5507.

4 years agoRemove unused is_persistent flag
Nikita Popov [Mon, 4 May 2020 12:59:35 +0000 (14:59 +0200)]
Remove unused is_persistent flag

I dropped the assignment to it before, but did not drop the
struct member.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 4 May 2020 12:52:42 +0000 (14:52 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #79535

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Nikita Popov [Mon, 4 May 2020 12:52:18 +0000 (14:52 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed bug #79535

4 years agoFixed bug #79535
Nikita Popov [Mon, 4 May 2020 12:50:31 +0000 (14:50 +0200)]
Fixed bug #79535

We did not allocate a cache slot for FETCH_CLASS. This is already
fixed on newer PHP versions.

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Mon, 4 May 2020 12:35:33 +0000 (14:35 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix i386 build on Azure

4 years agoFix i386 build on Azure
Nikita Popov [Mon, 4 May 2020 10:16:45 +0000 (12:16 +0200)]
Fix i386 build on Azure

Disabling postgresql entirely for now, because I can't figure out
how to fix it. Something broke big time with i386 packages on
Azure pipelines.

4 years agoUse ZPP int|string and add ValueError for Windows codepages
George Peter Banyard [Sun, 3 May 2020 12:09:37 +0000 (14:09 +0200)]
Use ZPP int|string and add ValueError for Windows codepages

Closes GH-5517

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Mon, 4 May 2020 09:52:01 +0000 (11:52 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Add basic sapi_windows_cp_conv() test

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Mon, 4 May 2020 09:50:50 +0000 (11:50 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Add basic sapi_windows_cp_conv() test

4 years agoAdd basic sapi_windows_cp_conv() test
Christoph M. Becker [Mon, 4 May 2020 09:46:54 +0000 (11:46 +0200)]
Add basic sapi_windows_cp_conv() test

This function is lacking any tests so far.

4 years agoUse libenchant2 if available on Windows
Christoph M. Becker [Mon, 4 May 2020 09:25:28 +0000 (11:25 +0200)]
Use libenchant2 if available on Windows

This is basically the same as commit 3427545[1], but for Windows.

[1] <http://git.php.net/?p=php-src.git;a=commitdiff;h=342754575237da912874f781a24eefe76434ce5a>

4 years agoUse libenchant-2 when available
Remi Collet [Mon, 4 May 2020 06:27:31 +0000 (08:27 +0200)]
Use libenchant-2 when available

4 years agoFix #79467: data:// wrappers are writable
Christoph M. Becker [Sat, 2 May 2020 14:57:24 +0000 (16:57 +0200)]
Fix #79467: data:// wrappers are writable

Despite the docs claiming that data: wrappers would not be writable[1],
they are implemented as writing to a memory stream.  That does not seem
to be particularly sensible, so we disallow writing altogether.

[1] <https://www.php.net/manual/en/wrappers.data.php#refsect1-wrappers.data-options>

4 years agoUse ZPP check for string|int|null arguments in array_column()
George Peter Banyard [Mon, 27 Apr 2020 18:30:07 +0000 (20:30 +0200)]
Use ZPP check for string|int|null arguments in array_column()

4 years agoAdd Fast ZPP string|int type check
George Peter Banyard [Fri, 24 Apr 2020 13:35:03 +0000 (15:35 +0200)]
Add Fast ZPP string|int type check

4 years agoDon't raise bogus warning if writing completely failed
Christoph M. Becker [Sat, 2 May 2020 14:28:18 +0000 (16:28 +0200)]
Don't raise bogus warning if writing completely failed

4 years agoRemove is_persistent flag from proc_open implementation
Nikita Popov [Sat, 2 May 2020 13:33:29 +0000 (15:33 +0200)]
Remove is_persistent flag from proc_open implementation

We don't support persistent proc_open handles and have no plan
to suppor them. The mixture of persistent and non-persistent
allocations functions in this code is somewhat confusing to read.

4 years agoConvert UNKNOWN default values to null in ext/date
Máté Kocsis [Fri, 1 May 2020 19:45:30 +0000 (21:45 +0200)]
Convert UNKNOWN default values to null in ext/date

Closes GH-5509

4 years agoConvert UNKNOWN default values to null in ext/calendar
Máté Kocsis [Fri, 1 May 2020 18:49:55 +0000 (20:49 +0200)]
Convert UNKNOWN default values to null in ext/calendar

4 years agoConvert UNKNOWN default values to null in ext/bcmath
Máté Kocsis [Fri, 1 May 2020 18:49:47 +0000 (20:49 +0200)]
Convert UNKNOWN default values to null in ext/bcmath

4 years agoFix miscellaneous typos in code comments/var names
Tyson Andre [Mon, 18 Feb 2019 16:14:22 +0000 (11:14 -0500)]
Fix miscellaneous typos in code comments/var names

Closes GH-5501

4 years agoRemove the deprecated is_real() function
Máté Kocsis [Fri, 1 May 2020 11:14:54 +0000 (13:14 +0200)]
Remove the deprecated is_real() function

Closes GH-5506

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Fri, 1 May 2020 10:42:09 +0000 (12:42 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79528: Different object of the same xml between 7.4.5 and 7.4.4

4 years agoMerge branch 'PHP-7.3' into PHP-7.4
Christoph M. Becker [Fri, 1 May 2020 10:38:03 +0000 (12:38 +0200)]
Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fix #79528: Different object of the same xml between 7.4.5 and 7.4.4

4 years agoFix #79528: Different object of the same xml between 7.4.5 and 7.4.4
Christoph M. Becker [Fri, 1 May 2020 10:19:32 +0000 (12:19 +0200)]
Fix #79528: Different object of the same xml between 7.4.5 and 7.4.4

Revert "Fix #61597: SXE properties may lack attributes and content"

This reverts commit 7c081db885756d7b176a55b90b8746f664d1e042.

4 years agoAvoid spurious failures of MySQL INSERT packet overflow test
Alex Dowad [Wed, 22 Apr 2020 18:52:16 +0000 (20:52 +0200)]
Avoid spurious failures of MySQL INSERT packet overflow test

This test creates a MySQL table called 'test'. In several cases, I have seen a spurious
test failure (in CI) with an error message saying: "table 'test' already exists".

It may be that another test had used a table with the same name and not cleaned it out
correctly. Or maybe we have multiple tests running in parallel in some CI environments,
or the same test DB being used for multiple runs of the test suite.

In any case, change the table name so it is exclusive to this test case only. Also, if
the test table exists at the beginning of the test, drop it.

Closes GH-5479

4 years agoTry to make regression test for Bug #69900 consistent
Alex Dowad [Wed, 22 Apr 2020 18:45:25 +0000 (20:45 +0200)]
Try to make regression test for Bug #69900 consistent

It has been observed that in rare cases, this regression test has spurious failures in CI.
Try increasing the threshold for failure a bit and see if this makes it pass consistently.

4 years agoFix other typos in param name/code comments
Tyson Andre [Thu, 30 Apr 2020 23:36:21 +0000 (19:36 -0400)]
Fix other typos in param name/code comments

Closes GH-5502

4 years ago[skip ci] Fix a typo in UPGRADING
Tyson Andre [Thu, 30 Apr 2020 23:40:54 +0000 (19:40 -0400)]
[skip ci] Fix a typo in UPGRADING

Confirmed that php_zip.c checks for `"enc_password"`

Closes GH-5503

4 years agoBetter handling of IS_UNDEF variables
Dmitry Stogov [Thu, 30 Apr 2020 14:07:35 +0000 (17:07 +0300)]
Better handling of IS_UNDEF variables

4 years agoReplace ZEND_ASSERT() by conditional compilation abort.
Dmitry Stogov [Thu, 30 Apr 2020 12:32:01 +0000 (15:32 +0300)]
Replace ZEND_ASSERT() by conditional compilation abort.
Prevent endless loop through ESCAPE code.

4 years agoUse ascii lowercase if locale is default C
Xinchen Hui [Tue, 28 Apr 2020 03:33:02 +0000 (11:33 +0800)]
Use ascii lowercase if locale is default C

4 years agoDo not inherit LC_CTYPE locale from environment
Nikita Popov [Wed, 29 Apr 2020 09:51:50 +0000 (11:51 +0200)]
Do not inherit LC_CTYPE locale from environment

Treatment of locales in PHP is currently inconsistent: The LC_ALL
locale is set to "C", as is standard behavior on program startup.
The LC_CTYPE locale is set to "", which will inherit it from the
environment. However, the inherited LC_CTYPE locale will only be
used in some cases, while in other cases it is necessary to perform
an explicit setlocale() call in PHP first. This is the case for
the locale-sensitive handling in the PCRE extension.

Make things consistent by *never* inheriting any locales from the
environment. LC_ALL, including LC_CTYPE will be "C" on startup.
A locale can be set or inherited through an explicit setlocale()
call, at which point the behavior will be fully consistent and
predictable.

Closes GH-5488.

4 years agoRevert "Insert one more debug output"
Nikita Popov [Thu, 30 Apr 2020 07:55:25 +0000 (09:55 +0200)]
Revert "Insert one more debug output"

This reverts commit 45cb42166d4a53fe0154be08097f112d6ec72a27.

4 years agoCompletely remove disabled functions from function table
Nikita Popov [Mon, 27 Apr 2020 11:17:37 +0000 (13:17 +0200)]
Completely remove disabled functions from function table

Currently, disabling a function only replaces the internal
function handler with one that throws a warning, and a few
places in the engine special-case such functions, such as
function_exists. This leaves us with a Schrödinger's function,
which both does not exist (function_exists returns false) and
does exist (you cannot define a function with the same name).
In particular, this prevents the implementation of robust
polyfills, as reported in https://bugs.php.net/bug.php?id=79382:

    if (!function_exists('getallheaders')) {
        function getallheaders(...) { ... }
    }

If getallheaders() is a disabled function, this code will break.

This patch changes disable_functions to remove the functions from
the function table completely. For all intents and purposes, it
will look like the function does not exist.

This also renders two bits of PHP functionality obsolete and thus
deprecated:

 * ReflectionFunction::isDisabled(), as it will no longer be
   possible to construct the ReflectionFunction of a disabled
   function in the first place.
 * get_defined_functions() with $exclude_disabled=false, as
   get_defined_functions() now never returns disabled functions.

Fixed bug #79382.

Closes GH-5473.

4 years agoRevert "Show eventual output of clean sections"
Christoph M. Becker [Thu, 30 Apr 2020 07:51:10 +0000 (09:51 +0200)]
Revert "Show eventual output of clean sections"

This reverts commit 5eb4ab07f27c82336d337afa01d02a7bf574adaf.
The temporary hack has served its purpose.

4 years agodoc enchant changes
Remi Collet [Thu, 30 Apr 2020 07:40:46 +0000 (09:40 +0200)]
doc enchant changes

4 years agoremove deprecated call and deprecate function to be removed in libenchant v2
Remi Collet [Wed, 29 Apr 2020 13:21:00 +0000 (15:21 +0200)]
remove deprecated call and deprecate function to be removed in libenchant v2
add LIBENCHANT_VERSION constant

4 years agoCode tweaks: Remove unneeded semicolons
Alex Dowad [Wed, 29 Apr 2020 06:48:47 +0000 (08:48 +0200)]
Code tweaks: Remove unneeded semicolons

4 years agoTreat invalid characters in basename() consistently
Nikita Popov [Wed, 29 Apr 2020 16:42:25 +0000 (18:42 +0200)]
Treat invalid characters in basename() consistently

Always simply ignore (pass through) them. Previously the behavior
depended on where the invalid character occurred, as it messed
up the state management.

4 years agoClean up naming in basename() implementation
Nikita Popov [Wed, 29 Apr 2020 16:37:51 +0000 (18:37 +0200)]
Clean up naming in basename() implementation

4 years agoImproved tracing JIT for nested calls
Dmitry Stogov [Wed, 29 Apr 2020 15:24:18 +0000 (18:24 +0300)]
Improved tracing JIT for nested calls

4 years agoMerge branch 'PHP-7.4'
Nikita Popov [Wed, 29 Apr 2020 13:16:36 +0000 (15:16 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Reduce test parallelism on ARM64 CI

4 years agoReduce test parallelism on ARM64 CI
Nikita Popov [Tue, 21 Apr 2020 10:03:49 +0000 (12:03 +0200)]
Reduce test parallelism on ARM64 CI

Let's go from 32 to 16 parallel jobs. We can reduce this further
if necessary.

Closes GH-5426.

4 years agomanage ZEND_DEP_FALIAS in gen_stub
Remi Collet [Wed, 29 Apr 2020 11:17:04 +0000 (13:17 +0200)]
manage ZEND_DEP_FALIAS in gen_stub

4 years agoMerge branch 'PHP-7.4'
Christoph M. Becker [Wed, 29 Apr 2020 11:33:32 +0000 (13:33 +0200)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Pass worker ID to clean scripts

4 years agoPass worker ID to clean scripts
Christoph M. Becker [Wed, 29 Apr 2020 09:12:03 +0000 (11:12 +0200)]
Pass worker ID to clean scripts

On Windows, reusing/sharing of OPcache instances with different
configuration is not necessarily supported, so we have to make that it
does not happen for the clean scripts, by using `$orig_ini_settings`
instead of `$clean_params`.

4 years agoMerge branch 'PHP-7.4'
Xinchen Hui [Wed, 29 Apr 2020 10:59:01 +0000 (18:59 +0800)]
Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed bug #79536 (zend_clear_exception prevent exception's destructor to be called).

4 years agoMerge branch 'PHP-7.4' of git.php.net:/php-src into PHP-7.4
Xinchen Hui [Wed, 29 Apr 2020 10:58:48 +0000 (18:58 +0800)]
Merge branch 'PHP-7.4' of git.php.net:/php-src into PHP-7.4

* 'PHP-7.4' of git.php.net:/php-src:
  Fix #79532: sizeof off_t can be wrong
  Make 045.phpt busy wait
  Revert "Fix #79065: DOM classes do not expose properties to Reflection"
  Bump version
  Fix #79065: DOM classes do not expose properties to Reflection
  Fix #79470: PHP incompatible with 3rd party file system on demand

4 years agoFixed bug #79536 (zend_clear_exception prevent exception's destructor to be called).
Xinchen Hui [Wed, 29 Apr 2020 10:58:28 +0000 (18:58 +0800)]
Fixed bug #79536 (zend_clear_exception prevent exception's destructor to be called).

4 years agowhite space fixes
Dmitry Stogov [Wed, 29 Apr 2020 10:29:01 +0000 (13:29 +0300)]
white space fixes

4 years agoJIT: Save opline before calling zend_timeout
Nikita Popov [Wed, 29 Apr 2020 08:57:27 +0000 (10:57 +0200)]
JIT: Save opline before calling zend_timeout

tests/045.phpt started segfaulting, because the opline is not set
when zend_timeout is invoked.