You are here

function PclZip::privCloseFd in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::privCloseFd()
8 calls to PclZip::privCloseFd()
PclZip::privAdd in includes/moodle/lib/pclzip/pclzip.lib.php
PclZip::privCreate in includes/moodle/lib/pclzip/pclzip.lib.php
PclZip::privDeleteByRule in includes/moodle/lib/pclzip/pclzip.lib.php
PclZip::privDuplicate in includes/moodle/lib/pclzip/pclzip.lib.php
PclZip::privExtractByRule in includes/moodle/lib/pclzip/pclzip.lib.php

... See full list

File

includes/moodle/lib/pclzip/pclzip.lib.php, line 2338

Class

PclZip

Code

function privCloseFd() {

  //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::privCloseFd", "");
  $v_result = 1;
  if ($this->zip_fd != 0) {
    @fclose($this->zip_fd);
  }
  $this->zip_fd = 0;

  // ----- Return

  //--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
  return $v_result;
}