@@ 3175-3190 (lines=16) @@ | ||
3172 | if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header['stored_filename'])) { |
|
3173 | $v_extract = true; |
|
3174 | } |
|
3175 | } elseif ((isset($p_options[PCLZIP_OPT_BY_INDEX])) && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { |
|
3176 | // ----- Look for extract by index rule |
|
3177 | // ----- Look if the index is in the list |
|
3178 | for ($j = $j_start; ($j < sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_extract); ++$j) { |
|
3179 | if (($i >= $p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i <= $p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { |
|
3180 | $v_extract = true; |
|
3181 | } |
|
3182 | if ($i >= $p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { |
|
3183 | $j_start = $j + 1; |
|
3184 | } |
|
3185 | ||
3186 | if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start'] > $i) { |
|
3187 | break; |
|
3188 | } |
|
3189 | } |
|
3190 | } else { |
|
3191 | // ----- Look for no rule, which means extract all the archive |
|
3192 | $v_extract = true; |
|
3193 | } |
|
@@ 4380-4394 (lines=15) @@ | ||
4377 | if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { |
|
4378 | $v_found = true; |
|
4379 | } |
|
4380 | } elseif ((isset($p_options[PCLZIP_OPT_BY_INDEX])) && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { |
|
4381 | // ----- Look for extract by index rule |
|
4382 | // ----- Look if the index is in the list |
|
4383 | for ($j = $j_start; ($j < sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_found); ++$j) { |
|
4384 | if (($i >= $p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i <= $p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { |
|
4385 | $v_found = true; |
|
4386 | } |
|
4387 | if ($i >= $p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { |
|
4388 | $j_start = $j + 1; |
|
4389 | } |
|
4390 | if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start'] > $i) { |
|
4391 | break; |
|
4392 | } |
|
4393 | } |
|
4394 | } else { |
|
4395 | $v_found = true; |
|
4396 | } |
|
4397 |