@@ 902-920 (lines=19) @@ | ||
899 | $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = false; |
|
900 | } else { |
|
901 | } |
|
902 | } else { |
|
903 | // ----- Look for 2 args |
|
904 | // Here we need to support the first historic synopsis of the |
|
905 | // method. |
|
906 | ||
907 | // ----- Get the first argument |
|
908 | $v_path = $v_arg_list[0]; |
|
909 | ||
910 | // ----- Look for the optional second argument |
|
911 | if ($v_size == 2) { |
|
912 | $v_remove_path = $v_arg_list[1]; |
|
913 | } elseif ($v_size > 2) { |
|
914 | // ----- Error log |
|
915 | self::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, 'Invalid number / type of arguments'); |
|
916 | ||
917 | // ----- Return |
|
918 | return 0; |
|
919 | } |
|
920 | } |
|
921 | } |
|
922 | ||
923 | // ----- Trace |
|
@@ 749-766 (lines=18) @@ | ||
746 | } |
|
747 | $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; |
|
748 | } |
|
749 | } else { |
|
750 | // ----- Look for 2 args |
|
751 | // Here we need to support the first historic synopsis of the |
|
752 | // method. |
|
753 | // ----- Get the first argument |
|
754 | $v_path = $v_arg_list[0]; |
|
755 | ||
756 | // ----- Look for the optional second argument |
|
757 | if ($v_size == 2) { |
|
758 | $v_remove_path = $v_arg_list[1]; |
|
759 | } elseif ($v_size > 2) { |
|
760 | // ----- Error log |
|
761 | self::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, 'Invalid number / type of arguments'); |
|
762 | ||
763 | // ----- Return |
|
764 | return 0; |
|
765 | } |
|
766 | } |
|
767 | } |
|
768 | ||
769 | // ----- Look for default option values |