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

WordPress Trac noreply at wordpress.org
Tue Feb 14 10:40:37 UTC 2023


#57711: PclZipUtilTranslateWinPath() fails when php_uname() function not available
--------------------------------+-----------------------------
 Reporter:  daymobrew           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  External Libraries  |    Version:  6.1.1
 Severity:  minor               |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 In PclZip class (wp-admin/includes/class-pclzip.php)
 PclZipUtilTranslateWinPath() calls php_uname(). If that function is
 disabled then the call fails.

 php_uname() is disabled on EasyWP host (part of Namecheap).
 https://www.namecheap.com/support/knowledgebase/article.aspx/9901/2279
 /easywp-list-of-php-functions-disabled-on-easywp-platform/

 Core handles this by checking whether php_uname() exists (in wp-
 admin/includes/class-wp-debug.php).

 Is it possible to get PclZip to do the same? I checked PclZip host site
 (http://www.phpconcept.net) but there was no contact info there.

 This error arose while using https://wordpress.org/plugins/simply-static/

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


More information about the wp-trac mailing list