Jakub Zelenka
21d551ad0f
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-27 19:14:47 +01:00
Jakub Zelenka
0df28869f6
Add skip for FPM resource heavy tests
2022-04-27 19:11:47 +01:00
Ben Ramsey
fb819faa4e
Prepare for PHP 8.1.7
2022-04-26 19:22:15 -05:00
Derick Rethans
97ffd75b13
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-26 17:57:55 +01:00
Derick Rethans
b461c4673b
Use the new RETURN_THROWS() instead of just returning NULL
2022-04-26 17:57:47 +01:00
Derick Rethans
bc43e69822
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-26 16:45:01 +01:00
Derick Rethans
87f341b1c2
Return early when the timezone info is NULL.
...
The guess_timezone function does throw an error, but throwing an error doesn't
immediate make the PHP_FUNCTION return.
This check is really only necessary for distributions that patch PHP's timelib
to use system tzdata, but not correct enough to account for their
implementation to guarantee to return a timezone.
2022-04-26 16:43:30 +01:00
Christoph M. Becker
4c0639df1c
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Haiku fix ZTS build disabling `tsrm_ls_cache` usage.
2022-04-26 14:18:02 +02:00
David Carlier
4bb0dd49d8
Haiku fix ZTS build disabling tsrm_ls_cache usage.
2022-04-26 14:16:38 +02:00
Christoph M. Becker
990a8cd09c
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Prepare for PHP 8.0.20
2022-04-26 10:48:17 +02:00
Gabriel Caruso
52a18a6620
Prepare for PHP 8.0.20
2022-04-26 10:17:50 +02:00
Dmitry Stogov
e9d65c8e2b
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fixed tests
2022-04-26 08:32:28 +03:00
Dmitry Stogov
3564eaff42
Fixed tests
2022-04-26 08:31:42 +03:00
Christoph M. Becker
e063243d2e
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8218: ob_end_clean does not reset Content-Encoding header
2022-04-25 14:29:44 +02:00
Christoph M. Becker
30f4c725cb
Fix GH-8218: ob_end_clean does not reset Content-Encoding header
...
The fix for GH-7953 introduced a regression by being to deliberate
adding the respective headers. These must only be added, if the
handler starts, but is not finalizing.
Closes GH-8353.
2022-04-25 14:26:56 +02:00
Dmitry Stogov
948ef10dd0
Fix ISSET_ISEMPTY_VAR missoptimization
...
This fixes oss-fuzz #46909
2022-04-25 13:31:01 +03:00
Dmitry Stogov
1aa5e9392d
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Reorder optimization passes to avoid miss-optimization
2022-04-25 13:09:31 +03:00
Dmitry Stogov
3b735456c6
Reorder optimization passes to avoid miss-optimization
2022-04-25 13:09:05 +03:00
Dmitry Stogov
e14dc15e13
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix type inference
2022-04-25 12:17:07 +03:00
Dmitry Stogov
3e78964742
Fix type inference
...
Use MAY_BE_NULL result (insted of empty) for ASSIGN_DIM with invalid arguments
This fixes oss-fuzz #46840
2022-04-25 12:15:55 +03:00
Dmitry Stogov
2cff0e674d
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix type narrowing warning during type inference of ZEND_FETCH_DIM_W
2022-04-25 11:17:04 +03:00
Dmitry Stogov
8286de2fd3
Fix type narrowing warning during type inference of ZEND_FETCH_DIM_W
...
Fixes oss-fuzz #45820
2022-04-25 11:16:10 +03:00
Bob Weinand
ff6b813557
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-24 18:04:37 +02:00
Bob Weinand
a74b865123
Add missing SKIPIF for new ext/ffi test
2022-04-24 18:02:46 +02:00
Bob Weinand
01b91cb3b1
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-24 14:53:51 +02:00
Bob Weinand
2397e7685e
Fix GH-8433: Assigning function pointers to structs in FFI leaks memory
2022-04-24 14:53:18 +02:00
Christoph M. Becker
1c0dc2a6c9
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8364: msgfmt_format $values may not support references
2022-04-24 12:45:22 +02:00
Christoph M. Becker
f5d9e7c031
Fix GH-8364: msgfmt_format $values may not support references
...
We need to deref any references passed in the `$values` array. While
we could handle this in the type switch, doing it right away in the
foreach loop makes that more explicit, and also circumvents the missing
range checks for integers which are not passed as int or double.
Closes GH-8407.
2022-04-24 12:43:08 +02:00
Jakub Zelenka
8da14a3062
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-23 15:16:00 +01:00
David Carlier
ff90d42b8b
Fix FPM kqueue handler fix remove callback typo
...
It avoids confusion on failed event.
2022-04-23 15:11:53 +01:00
George Peter Banyard
660ef91fbc
Fix GH-8273: SplFileObject: key() returns wrong value
2022-04-23 14:00:11 +01:00
George Peter Banyard
6186ecd436
Fix GH-8273: SplFileObject: key() returns wrong value
2022-04-23 13:56:38 +01:00
Ilija Tovilo
bfad99f8a1
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Add missing news entry for GH-8421
2022-04-23 11:22:29 +02:00
Ilija Tovilo
4d6965dcec
Add missing news entry for GH-8421
2022-04-23 11:21:51 +02:00
Ilija Tovilo
82d3a831d2
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8421: Attributes that target functions are not valid for anonymous functions defined within a method
2022-04-23 11:19:20 +02:00
Ollie Read
d0f1b987a5
Fix GH-8421: Attributes that target functions are not valid for anonymous functions defined within a method
...
Closes GH-8424
2022-04-23 11:16:28 +02:00
Jakub Zelenka
abd56aeb9a
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-22 23:07:01 +01:00
Jakub Zelenka
d8612fb6b7
Fix bug #77023 : FPM cannot shutdown processes
...
This change introduces subsequent kill of the process when idle process quit
(SIGQUIT) does not succeed. It can happen in some situations and means that FPM
is not able to scale down in dynamic pm. Using SIGKILL fixes the issue.
2022-04-22 20:51:02 +01:00
Arnaud Le Blanc
f20e11cbe1
Clear recorded errors before executing shutdown functions
...
Recorded errors may be attached to the wrong cached script when a fatal error
occurs during recording. This happens because the fatal error will cause a
bailout, which may prevent the recorded errors from being freed. If an other
script is compiled after bailout, or if a class is linked after bailout, the
recorded errors will be attached to it.
This change fixes this by freeing recorded errors before executing shutdown
functions.
Fixes GH-8063
2022-04-22 18:14:08 +02:00
Derick Rethans
15ee285f83
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-22 10:31:14 +01:00
Derick Rethans
c854bb2472
Fixed GH-8400: bug73837.phpt makes no sense
...
Replaces the indeed silly test with something that actually does the job,
albeit much slower.
2022-04-22 10:29:37 +01:00
Ilija Tovilo
79eba0231b
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Only check tracked files in verify-generated-files
2022-04-22 00:29:40 +02:00
Ilija Tovilo
1dc6dba014
Only check tracked files in verify-generated-files
2022-04-22 00:28:32 +02:00
Ilija Tovilo
cf70047351
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Verify generated files are up to date in CI
2022-04-21 23:27:29 +02:00
Michael Voříšek
36de002cc6
Verify generated files are up to date in CI
...
Closes GH-8295
2022-04-21 23:25:47 +02:00
Ilija Tovilo
4397811db2
Fix preloading of constants containing enums
...
Fixes GH-8133
2022-04-21 11:57:12 +02:00
Christoph M. Becker
e9b9fec2b2
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8408: bug68547.phpt fails without multibyte support
2022-04-20 16:44:11 +02:00
Christoph M. Becker
dad5cb442d
Fix GH-8408: bug68547.phpt fails without multibyte support
2022-04-20 16:42:09 +02:00
Nikita Popov
18b4e36df1
Move check for named params in fcall optimization earlier
...
I don't think this is strictly necessary, but I think it makes
sense to check this before interpreting opline->op2.num as an
argument number.
This also adds one more has_known_send_mode() check that I had
missed before.
2022-04-18 18:21:24 +02:00
Nikita Popov
11f950e77e
Don't optimize trailing args for prototype fbc
2022-04-18 17:57:16 +02:00