Changeset 3822


Ignore:
Timestamp:
Sep 5, 2009, 1:20:48 PM (15 years ago)
Author:
patdenice
Message:

Update pclzip to 2.8.1 (PHP 5.3 compatibility)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/include/pclzip.lib.php

    r3581 r3822  
    11<?php
    22// --------------------------------------------------------------------------------
    3 // PhpConcept Library - Zip Module 2.8
     3// PhpConcept Library - Zip Module 2.8.1
    44// --------------------------------------------------------------------------------
    5 // License GNU/LGPL - Vincent Blavet - March 2006
     5// License GNU/LGPL - Vincent Blavet - August 2009
    66// http://www.phpconcept.net
    77// --------------------------------------------------------------------------------
     
    4545
    4646
    47 $g_pclzip_version = "2.8";
     47$g_pclzip_version = "2.8.1";
    4848
    4949define( 'PCLZIP_ERR_USER_ABORTED', 2 );
     
    957957
    958958      case PCLZIP_OPT_BY_EREG :
     959        $p_options_list[$i] = PCLZIP_OPT_BY_PREG;
    959960      case PCLZIP_OPT_BY_PREG :
    960961        if (($i+1) >= $p_size) {
     
    22602261    }
    22612262
    2262     else if (   (isset($p_options[PCLZIP_OPT_BY_EREG]))
    2263              && ($p_options[PCLZIP_OPT_BY_EREG] != "")) {
    2264 
    2265         if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header['stored_filename'])) {
    2266             $v_extract = true;
    2267         }
    2268     }
    2269 
    22702263    else if (   (isset($p_options[PCLZIP_OPT_BY_PREG]))
    22712264             && ($p_options[PCLZIP_OPT_BY_PREG] != "")) {
     
    32253218    }
    32263219
    3227     else if (   (isset($p_options[PCLZIP_OPT_BY_EREG]))
    3228              && ($p_options[PCLZIP_OPT_BY_EREG] != "")) {
    3229 
    3230         if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header_list[$v_nb_extracted]['stored_filename'])) {
    3231             $v_found = true;
    3232         }
    3233     }
    3234 
    32353220    else if (   (isset($p_options[PCLZIP_OPT_BY_PREG]))
    32363221             && ($p_options[PCLZIP_OPT_BY_PREG] != "")) {
Note: See TracChangeset for help on using the changeset viewer.