original_string: public function get_info($index) {
          if (!isset($this->za)) {
              return false;
          }
  
          // Need to use the ZipArchive's numfiles, as $this->count() relies on this function to count actual files (skipping OSX junk).
          if ($index < 0 or $index >=$this->za->numFiles) {
              return false;
          }
  
          // PHP 5.6 introduced encoding guessing logic, we need to fall back
          // to raw ZIP_FL_ENC_RAW (== 64) to get consistent results as in PHP 5.5.
          $result = $this->za->statIndex($index, 64);
  
          if ($result === false) {
              return false;
          }
  
          $info = new stdClass();
          $info->index             = $index;
          $info->original_pathname = $result['name'];
          $info->pathname          = $this->unmangle_pathname($result['name']);
          $info->mtime             = (int)$result['mtime'];
  
          if ($info->pathname[strlen($info->pathname)-1] === '/') {
              $info->is_directory = true;
              $info->size         = 0;
          } else {
              $info->is_directory = false;
              $info->size         = (int)$result['size'];
          }
  
          if ($this->is_system_file($info)) {
              // Don't return system files.
              return false;
          }
  
          return $info;
      }
code: public function get_info($index) {
          if (!isset($this->za)) {
              return false;
          }
  
          // Need to use the ZipArchive's numfiles, as $this->count() relies on this function to count actual files (skipping OSX junk).
          if ($index < 0 or $index >=$this->za->numFiles) {
              return false;
          }
  
          // PHP 5.6 introduced encoding guessing logic, we need to fall back
          // to raw ZIP_FL_ENC_RAW (== 64) to get consistent results as in PHP 5.5.
          $result = $this->za->statIndex($index, 64);
  
          if ($result === false) {
              return false;
          }
  
          $info = new stdClass();
          $info->index             = $index;
          $info->original_pathname = $result['name'];
          $info->pathname          = $this->unmangle_pathname($result['name']);
          $info->mtime             = (int)$result['mtime'];
  
          if ($info->pathname[strlen($info->pathname)-1] === '/') {
              $info->is_directory = true;
              $info->size         = 0;
          } else {
              $info->is_directory = false;
              $info->size         = (int)$result['size'];
          }
  
          if ($this->is_system_file($info)) {
              // Don't return system files.
              return false;
          }
  
          return $info;
      }
code_tokens: public function get_info ( $ index ) { if ( ! isset ( $ this -> za ) ) { return false ; } // Need to use the ZipArchive's numfiles, as $this->count() relies on this function to count actual files (skipping OSX junk). if ( $ index < 0 or $ index >= $ this -> za -> numFiles ) { return false ; } // PHP 5.6 introduced encoding guessing logic, we need to fall back // to raw ZIP_FL_ENC_RAW (== 64) to get consistent results as in PHP 5.5. $ result = $ this -> za -> statIndex ( $ index , 64 ) ; if ( $ result === false ) { return false ; } $ info = new stdClass ( ) ; $ info -> index = $ index ; $ info -> original_pathname = $ result [ 'name' ] ; $ info -> pathname = $ this -> unmangle_pathname ( $ result [ 'name' ] ) ; $ info -> mtime = ( int ) $ result [ 'mtime' ] ; if ( $ info -> pathname [ strlen ( $ info -> pathname ) - 1 ] === '/' ) { $ info -> is_directory = true ; $ info -> size = 0 ; } else { $ info -> is_directory = false ; $ info -> size = ( int ) $ result [ 'size' ] ; } if ( $ this -> is_system_file ( $ info ) ) { // Don't return system files. return false ; } return $ info ; }
docstring: Returns file information.
  
  @param int $index index of file
  @return stdClass|bool info object or false if error
docstring_tokens: Returns file information .