[wp-trac] [WordPress Trac] #30213: Zlib does not work on fresh ubuntu installations...

WordPress Trac noreply at wordpress.org
Fri Oct 31 11:58:42 UTC 2014


#30213: Zlib does not work on fresh ubuntu installations...
--------------------------+-----------------------------
 Reporter:  wvdploeg      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 And maybe the same issue on other Linux installations. The function
 'gzopen' has been renamed to 'gzopen64', zo I suggest that in the future
 the class-pcllib.php should be extended with the following code just
 before the class declaration :


 {{{
 if (!extension_loaded('zlib'))
     {
       die('Abort '.basename(__FILE__).' : Missing zlib extensions');
     }
     if (!function_exists('gzopen') && function_exists('gzopen64'))
     {
       function gzopen( $filename ,  $mode,  $use_include_path = 0) {
         return gzopen64($filename, $mode, $use_include_path);
       }
     }
 }}}



 Thanks in advance for the update.

 Wilko van der Ploeg
 WordXPression

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


More information about the wp-trac mailing list