@@ 1468-1481 (lines=14) @@ | ||
1465 | // ----- Look for options that request a path value |
|
1466 | case PCLZIP_OPT_PATH : |
|
1467 | case PCLZIP_OPT_REMOVE_PATH : |
|
1468 | case PCLZIP_OPT_ADD_PATH : |
|
1469 | // ----- Check the number of parameters |
|
1470 | if (($i+1) >= $p_size) { |
|
1471 | // ----- Error log |
|
1472 | PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); |
|
1473 | ||
1474 | // ----- Return |
|
1475 | return PclZip::errorCode(); |
|
1476 | } |
|
1477 | ||
1478 | // ----- Get the value |
|
1479 | $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); |
|
1480 | $i++; |
|
1481 | break; |
|
1482 | ||
1483 | case PCLZIP_OPT_TEMP_FILE_THRESHOLD : |
|
1484 | // ----- Check the number of parameters |
|
@@ 1747-1760 (lines=14) @@ | ||
1744 | break; |
|
1745 | ||
1746 | // ----- Look for options that request an octal value |
|
1747 | case PCLZIP_OPT_SET_CHMOD : |
|
1748 | // ----- Check the number of parameters |
|
1749 | if (($i+1) >= $p_size) { |
|
1750 | // ----- Error log |
|
1751 | PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); |
|
1752 | ||
1753 | // ----- Return |
|
1754 | return PclZip::errorCode(); |
|
1755 | } |
|
1756 | ||
1757 | // ----- Get the value |
|
1758 | $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; |
|
1759 | $i++; |
|
1760 | break; |
|
1761 | ||
1762 | // ----- Look for options that request a call-back |
|
1763 | case PCLZIP_CB_PRE_EXTRACT : |