@@ 1837-1844 (lines=8) @@ | ||
1834 | } |
|
1835 | break; |
|
1836 | // ----- Look for options that takes a string |
|
1837 | case PCLZIP_ATT_FILE_COMMENT: |
|
1838 | if (!is_string($v_value)) { |
|
1839 | self::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, 'Invalid type ' . gettype($v_value) . ". String expected for attribute '" . PclZipUtilOptionText($v_key) . "'"); |
|
1840 | ||
1841 | return self::errorCode(); |
|
1842 | } |
|
1843 | $p_filedescr['comment'] = $v_value; |
|
1844 | break; |
|
1845 | case PCLZIP_ATT_FILE_MTIME: |
|
1846 | if (!is_integer($v_value)) { |
|
1847 | self::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, 'Invalid type ' . gettype($v_value) . ". Integer expected for attribute '" . PclZipUtilOptionText($v_key) . "'"); |
|
@@ 1845-1852 (lines=8) @@ | ||
1842 | } |
|
1843 | $p_filedescr['comment'] = $v_value; |
|
1844 | break; |
|
1845 | case PCLZIP_ATT_FILE_MTIME: |
|
1846 | if (!is_integer($v_value)) { |
|
1847 | self::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, 'Invalid type ' . gettype($v_value) . ". Integer expected for attribute '" . PclZipUtilOptionText($v_key) . "'"); |
|
1848 | ||
1849 | return self::errorCode(); |
|
1850 | } |
|
1851 | $p_filedescr['mtime'] = $v_value; |
|
1852 | break; |
|
1853 | case PCLZIP_ATT_FILE_CONTENT: |
|
1854 | $p_filedescr['content'] = $v_value; |
|
1855 | break; |