Commit e2b0bfd
committed
Filesystem API: Check
The `php_uname()` function can be disabled on some hosts, in which case the call fails.
The `PHP_OS_FAMILY` constant indicates the operating system family PHP was built for, and is available as of PHP 7.2.0.
Reference: [https://www.php.net/manual/en/reserved.constants.php#constant.php-os-family PHP Manual: Predefined Constants: PHP_OS_FAMILY].
Follow-up to [6779], [57985], [58678], [58684].
Props daymobrew, costdev, desrosj.
Fixes #57711.
git-svn-id: https://develop.svn.wordpress.org/trunk@59506 602fd350-edb4-49c9-b593-d223f7449a82PHP_OS_FAMILY instead of php_uname() in PclZip.1 parent 9104190 commit e2b0bfd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5714 | 5714 | | |
5715 | 5715 | | |
5716 | 5716 | | |
5717 | | - | |
| 5717 | + | |
5718 | 5718 | | |
5719 | 5719 | | |
5720 | 5720 | | |
| |||
0 commit comments