[wp-trac] [WordPress Trac] #57711: PclZipUtilTranslateWinPath() fails when php_uname() function not available

WordPress Trac noreply at wordpress.org
Thu Dec 12 22:21:36 UTC 2024


#57711: PclZipUtilTranslateWinPath() fails when php_uname() function not available
--------------------------------+-----------------------------
 Reporter:  daymobrew           |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  Future Release
Component:  External Libraries  |     Version:  6.1.1
 Severity:  minor               |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59506" 59506]:
 {{{
 #!CommitTicketReference repository="" revision="59506"
 Filesystem API: Check `PHP_OS_FAMILY` instead of `php_uname()` in PclZip.

 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57711#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list