PclZip::privCheckFormat() –
You appear to be a bot. Output may be restricted
Description
Usage
PclZip::privCheckFormat( $p_level );
Parameters
- $p_level
- ( mixed ) optional –
Returns
void
Source
File name: wordpress/wp-admin/includes/class-pclzip.php
Lines:
1 to 36 of 36
function privCheckFormat($p_level=0) { $v_result = true; // ----- Reset the file system cache clearstatcache(); // ----- Reset the error handler $this->PclZip::privErrorReset(); // ----- Look if the file exits if (!is_file($this->zipname)) { // ----- Error log PclZip::PclZip::PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'"); return(false); } // ----- Check that the file is readable if (!is_readable($this->zipname)) { // ----- Error log PclZip::PclZip::PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'"); return(false); } // ----- Check the magic code // TBC // ----- Check the central header // TBC // ----- Check each file header // TBC // ----- Return return $v_result; }