@@ 317-332 (lines=16) @@ | ||
314 | if ($v_result != 1) { |
|
315 | return 0; |
|
316 | } |
|
317 | } else { |
|
318 | // ----- Look for 2 args |
|
319 | // Here we need to support the first historic synopsis of the |
|
320 | // method. |
|
321 | // ----- Get the first argument |
|
322 | $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0]; |
|
323 | ||
324 | // ----- Look for the optional second argument |
|
325 | if ($v_size == 2) { |
|
326 | $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; |
|
327 | } elseif ($v_size > 2) { |
|
328 | self::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, 'Invalid number / type of arguments'); |
|
329 | ||
330 | return 0; |
|
331 | } |
|
332 | } |
|
333 | } |
|
334 | ||
335 | // ----- Look for default option values |
|
@@ 487-504 (lines=18) @@ | ||
484 | if ($v_result != 1) { |
|
485 | return 0; |
|
486 | } |
|
487 | } else { |
|
488 | // ----- Look for 2 args |
|
489 | // Here we need to support the first historic synopsis of the |
|
490 | // method. |
|
491 | // ----- Get the first argument |
|
492 | $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0]; |
|
493 | ||
494 | // ----- Look for the optional second argument |
|
495 | if ($v_size == 2) { |
|
496 | $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; |
|
497 | } elseif ($v_size > 2) { |
|
498 | // ----- Error log |
|
499 | self::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, 'Invalid number / type of arguments'); |
|
500 | ||
501 | // ----- Return |
|
502 | return 0; |
|
503 | } |
|
504 | } |
|
505 | } |
|
506 | ||
507 | // ----- Look for default option values |