src/Slashworks/AppBundle/Resources/private/api/zip.lib.php
private static function getTemporaryFile() {
        if(is_callable(self::$temp)) {
            $temporaryFile = @call_user_func(self::$temp);
            if(is_string($temporaryFile) && strlen($temporaryFile) && is_writable($temporaryFile)) {
                return $temporaryFile;
            }
        }
        $temporaryDirectory = (is_string(self::$temp) && strlen(self::$temp)) ? self::$temp : sys_get_temp_dir();
        return tempnam($temporaryDirectory, 'Zip');
    }
private static function getTemporaryFile() {
        if(is_callable(self::$temp)) {
            $temporaryFile = @call_user_func(self::$temp);
            if(is_string($temporaryFile) && strlen($temporaryFile) && is_writable($temporaryFile)) {
                return $temporaryFile;
            }
        }
        $temporaryDirectory = (is_string(self::$temp) && strlen(self::$temp)) ? self::$temp : sys_get_temp_dir();
        return tempnam($temporaryDirectory, 'Zip');
    }
private static function getTemporaryFile ( ) { if ( is_callable ( self :: $ temp ) ) { $ temporaryFile = @ call_user_func ( self :: $ temp ) ; if ( is_string ( $ temporaryFile ) && strlen ( $ temporaryFile ) && is_writable ( $ temporaryFile ) ) { return $ temporaryFile ; } } $ temporaryDirectory = ( is_string ( self :: $ temp ) && strlen ( self :: $ temp ) ) ? self :: $ temp : sys_get_temp_dir ( ) ; return tempnam ( $ temporaryDirectory , 'Zip' ) ; }
Returns the path to a temporary file.
@return string
Returns the path to a temporary file .