Sergey Biryukov
ab263f93e5
Upgrade/Install: Check if the disk_free_space()
function exists before calling it.
...
In PHP 8+, `@` no longer suppresses fatal errors:
> The `@` operator will no longer silence fatal errors (`E_ERROR`, `E_CORE_ERROR`, `E_COMPILE_ERROR`, `E_USER_ERROR`, `E_RECOVERABLE_ERROR`, `E_PARSE`).
Reference: [https://www.php.net/manual/en/migration80.incompatible.php PHP 8: Backward Incompatible Changes].
`disk_free_space()` may be disabled by hosts, which will throw a fatal error on a call to undefined function.
This change prevents the fatal error, and falls back to `false` when `disk_free_space()` is unavailable.
Follow-up to [25540], [25774], [25776], [25831], [25869].
Props costdev, jrf, swb1192, SergeyBiryukov.
Fixes #54826 . See #54730 .
Built from https://develop.svn.wordpress.org/trunk@52585
git-svn-id: http://core.svn.wordpress.org/trunk@52175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-17 11:41:03 +00:00
..
2021-06-30 00:21:58 +00:00
2020-02-06 06:33:11 +00:00
2021-11-15 22:24:01 +00:00
2021-05-25 20:14:59 +00:00
2021-09-09 13:48:56 +00:00
2020-11-09 10:53:10 +00:00
2020-11-09 10:53:10 +00:00
2021-09-09 13:59:56 +00:00
2022-01-14 15:14:00 +00:00
2021-08-19 02:07:56 +00:00
2022-01-15 08:44:03 +00:00
2020-01-29 00:45:18 +00:00
2019-11-01 14:57:02 +00:00
2019-11-01 14:57:02 +00:00
2020-06-03 17:40:12 +00:00
2021-09-09 13:59:56 +00:00
2020-10-05 13:44:11 +00:00
2021-08-29 01:33:58 +00:00
2021-05-19 18:10:59 +00:00
2020-11-09 10:53:10 +00:00
2021-12-10 00:06:04 +00:00
2022-01-15 08:44:03 +00:00
2020-11-09 10:53:10 +00:00
2022-01-15 08:44:03 +00:00
2021-09-09 13:03:55 +00:00
2021-09-09 12:39:59 +00:00
2022-01-15 08:44:03 +00:00
2021-09-09 13:48:56 +00:00
2021-06-07 23:49:58 +00:00
2022-01-07 17:55:01 +00:00
2021-11-18 13:57:01 +00:00
2021-08-26 12:59:02 +00:00
2021-11-05 21:05:00 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-04-08 11:12:08 +00:00
2021-11-30 17:18:01 +00:00
2021-09-07 19:24:53 +00:00
2020-11-14 16:54:08 +00:00
2021-10-01 18:39:58 +00:00
2021-10-12 16:44:01 +00:00
2021-12-07 12:20:02 +00:00
2021-09-10 14:49:00 +00:00
2022-01-16 08:40:00 +00:00
2021-09-21 18:21:00 +00:00
2021-11-20 02:23:02 +00:00
2018-08-17 01:51:36 +00:00
2021-11-19 14:44:01 +00:00
2020-10-20 21:20:07 +00:00
2020-10-20 21:20:07 +00:00
2021-11-24 11:41:03 +00:00
2021-11-24 11:41:03 +00:00
2021-11-27 02:07:00 +00:00
2021-10-18 17:52:58 +00:00
2022-01-15 08:44:03 +00:00
2021-02-02 16:53:04 +00:00
2021-11-16 14:57:02 +00:00
2021-11-18 13:50:05 +00:00
2022-01-15 08:44:03 +00:00
2021-09-09 13:59:56 +00:00
2019-10-08 17:19:04 +00:00
2021-12-10 00:06:04 +00:00
2022-01-15 20:49:06 +00:00
2021-04-06 13:45:09 +00:00
2021-03-19 15:42:04 +00:00
2021-10-19 23:09:00 +00:00
2022-01-04 19:13:02 +00:00
2021-12-21 20:06:02 +00:00
2021-12-07 12:20:02 +00:00
2021-04-11 13:44:13 +00:00
2022-01-17 11:41:03 +00:00
2021-07-02 07:11:58 +00:00
2021-12-31 13:55:03 +00:00
2021-01-05 17:16:11 +00:00
2021-01-03 22:04:04 +00:00
2021-12-07 12:20:02 +00:00
2020-05-23 11:38:08 +00:00
2021-11-30 17:18:01 +00:00
2021-12-21 20:06:02 +00:00
2020-01-29 00:35:08 +00:00
2019-09-03 00:41:05 +00:00
2021-12-07 12:20:02 +00:00
2021-05-24 19:59:57 +00:00
2021-11-02 17:37:57 +00:00
2019-09-20 20:46:56 +00:00
2021-11-30 17:18:01 +00:00
2021-12-29 17:28:00 +00:00
2022-01-12 23:45:01 +00:00
2021-12-07 12:20:02 +00:00
2021-08-26 14:05:58 +00:00
2021-12-07 12:20:02 +00:00
2021-11-19 14:44:01 +00:00
2021-05-09 20:27:02 +00:00
2021-11-23 21:37:01 +00:00
2021-11-30 17:18:01 +00:00
2021-03-20 18:30:08 +00:00
2022-01-15 08:44:03 +00:00
2021-01-03 22:04:04 +00:00
2022-01-17 11:41:03 +00:00
2021-11-20 02:23:02 +00:00
2022-01-06 17:07:03 +00:00
2021-11-30 17:18:01 +00:00
2021-12-13 10:21:07 +00:00