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
..
2022-01-11 18:36:00 +00:00
2022-01-11 18:36:00 +00:00
2022-01-17 11:41:03 +00:00
2022-01-05 17:37:03 +00:00
2020-12-04 15:50:12 +00:00
2021-12-21 20:06:02 +00:00
2020-02-06 06:33:11 +00:00
2022-01-11 18:36:00 +00:00
2021-02-02 18:13:04 +00:00
2021-06-01 11:30:57 +00:00
2020-02-06 06:33:11 +00:00
2021-11-30 17:18:01 +00:00
2020-02-06 06:33:11 +00:00
2021-07-22 13:53:00 +00:00
2021-06-22 04:26:58 +00:00
2021-10-01 13:49:00 +00:00
2021-07-22 13:53:00 +00:00
2022-01-04 18:35:03 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2021-11-08 21:43:01 +00:00
2021-11-02 15:57:59 +00:00
2021-04-09 11:31:09 +00:00
2021-12-22 13:00:03 +00:00
2021-06-07 18:47:02 +00:00
2021-02-16 18:50:03 +00:00
2021-11-15 16:45:01 +00:00
2021-11-15 16:45:01 +00:00
2021-09-22 21:01:00 +00:00
2021-07-08 17:07:58 +00:00
2021-07-08 17:07:58 +00:00
2021-11-30 17:18:01 +00:00
2022-01-04 18:35:03 +00:00
2021-07-22 13:53:00 +00:00
2021-11-03 03:16:57 +00:00
2020-05-12 18:40:07 +00:00
2021-03-21 13:13:03 +00:00
2021-07-22 13:53:00 +00:00
2021-07-22 13:53:00 +00:00
2020-07-05 15:22:01 +00:00
2021-07-27 19:01:59 +00:00
2021-12-12 14:52:02 +00:00
2021-12-12 14:52:02 +00:00
2021-07-22 13:53:00 +00:00
2021-03-07 12:32:09 +00:00
2021-07-22 13:53:00 +00:00
2020-10-18 17:27:06 +00:00
2021-12-25 03:32:03 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2021-07-22 13:53:00 +00:00
2021-11-15 20:00:59 +00:00
2021-07-22 13:53:00 +00:00
2021-11-02 16:42:59 +00:00
2021-07-22 13:53:00 +00:00
2019-08-16 00:39:55 +00:00
2021-07-22 13:53:00 +00:00
2021-10-05 23:11:06 +00:00
2021-11-08 21:55:00 +00:00
2022-01-02 16:47:05 +00:00
2021-07-22 13:53:00 +00:00
2022-01-03 21:28:01 +00:00
2021-12-21 20:06:02 +00:00
2022-01-07 11:21:04 +00:00
2021-07-22 13:53:00 +00:00
2020-05-16 18:42:12 +00:00
2021-02-08 21:39:16 +00:00
2020-02-06 06:33:11 +00:00
2021-08-26 12:59:02 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2022-01-07 16:47:00 +00:00
2021-08-14 12:06:59 +00:00
2021-12-14 16:14:01 +00:00
2021-11-01 22:36:59 +00:00
2021-12-18 21:02:04 +00:00
2020-04-05 03:02:11 +00:00
2021-12-21 20:06:02 +00:00
2022-01-05 22:14:59 +00:00
2022-01-15 08:44:03 +00:00
2021-07-22 13:53:00 +00:00
2021-11-18 09:25:03 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2021-03-21 13:13:03 +00:00
2021-08-05 03:37:56 +00:00
2021-12-21 02:45:03 +00:00
2021-07-22 13:53:00 +00:00
2021-07-22 13:53:00 +00:00
2021-10-31 23:16:58 +00:00
2021-09-09 21:40:57 +00:00
2021-07-22 13:53:00 +00:00