|
@@ 1952-1959 (lines=8) @@
|
| 1949 |
|
break;
|
| 1950 |
|
|
| 1951 |
|
// ----- Look for options that takes a string
|
| 1952 |
|
case PCLZIP_ATT_FILE_COMMENT :
|
| 1953 |
|
if (!is_string($v_value)) {
|
| 1954 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'");
|
| 1955 |
|
return PclZip::errorCode();
|
| 1956 |
|
}
|
| 1957 |
|
|
| 1958 |
|
$p_filedescr['comment'] = $v_value;
|
| 1959 |
|
break;
|
| 1960 |
|
|
| 1961 |
|
case PCLZIP_ATT_FILE_MTIME :
|
| 1962 |
|
if (!is_integer($v_value)) {
|
|
@@ 1961-1968 (lines=8) @@
|
| 1958 |
|
$p_filedescr['comment'] = $v_value;
|
| 1959 |
|
break;
|
| 1960 |
|
|
| 1961 |
|
case PCLZIP_ATT_FILE_MTIME :
|
| 1962 |
|
if (!is_integer($v_value)) {
|
| 1963 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'");
|
| 1964 |
|
return PclZip::errorCode();
|
| 1965 |
|
}
|
| 1966 |
|
|
| 1967 |
|
$p_filedescr['mtime'] = $v_value;
|
| 1968 |
|
break;
|
| 1969 |
|
|
| 1970 |
|
case PCLZIP_ATT_FILE_CONTENT :
|
| 1971 |
|
$p_filedescr['content'] = $v_value;
|