Codebase list phpggc / a334346 gadgetchains / PHPExcel / FD / 1 / gadgets.php
a334346

Tree @a334346 (Download .tar.gz)

gadgets.php @a334346raw · history · blame

<?php

# https://github.com/PHPOffice/PHPExcel/blob/1.8.2/Classes/PHPExcel/CachedObjectStorage/DiscISAM.php
class PHPExcel_CachedObjectStorage_DiscISAM {
    private $fileName = null;
    private $fileHandle = 42;

    public function __construct($filePath) {
        $this->fileName = $filePath;
    }

    /*
    public function __destruct() {
        if (!is_null($this->fileHandle)) {
            fclose($this->fileHandle); // Will only produce a warning
            unlink($this->fileName);
        }
        $this->fileHandle = null;
    }
    */
}