private function getTemporaryFile($postfix) {
        $sysFileName = tempnam(sys_get_temp_dir(), 'daux');
        if ($sysFileName === false) {
            throw new \RuntimeException("Could not create temporary file");
        }

        $newFileName = $sysFileName . $postfix;
        if ($sysFileName == $newFileName) {
            return $sysFileName;
        }

        if (DIRECTORY_SEPARATOR == '\\' ? rename($sysFileName, $newFileName) : link($sysFileName, $newFileName)) {
            return $newFileName;
        }

        throw new \RuntimeException("Could not create temporary file");
    }
private function getTemporaryFile($postfix) {
        $sysFileName = tempnam(sys_get_temp_dir(), 'daux');
        if ($sysFileName === false) {
            throw new \RuntimeException("Could not create temporary file");
        }

        $newFileName = $sysFileName . $postfix;
        if ($sysFileName == $newFileName) {
            return $sysFileName;
        }

        if (DIRECTORY_SEPARATOR == '\\' ? rename($sysFileName, $newFileName) : link($sysFileName, $newFileName)) {
            return $newFileName;
        }

        throw new \RuntimeException("Could not create temporary file");
    }
private function getTemporaryFile ( $ postfix ) { $ sysFileName = tempnam ( sys_get_temp_dir ( ) , 'daux' ) ; if ( $ sysFileName === false ) { throw new \ RuntimeException ( "Could not create temporary file" ) ; } $ newFileName = $ sysFileName . $ postfix ; if ( $ sysFileName == $ newFileName ) { return $ sysFileName ; } if ( DIRECTORY_SEPARATOR == '\\' ? rename ( $ sysFileName , $ newFileName ) : link ( $ sysFileName , $ newFileName ) ) { return $ newFileName ; } throw new \ RuntimeException ( "Could not create temporary file" ) ; }
Create a temporary file with the file suffix, for mime type detection.

@param string $postfix
@return string
Create a temporary file with the file suffix for mime type detection .