public static function tempnam($dir, $prefix, $cb)
    {
        $cb = CallbackWrapper::forceWrap($cb);
        if (!FileSystem::$supported) {
            FileSystem::open(tempnam($dir, $prefix), 'w!', $cb);
        }
        $tries = 0;
        static::tempnamHandler($dir, $prefix, $cb, $tries);
    }
public static function tempnam($dir, $prefix, $cb)
    {
        $cb = CallbackWrapper::forceWrap($cb);
        if (!FileSystem::$supported) {
            FileSystem::open(tempnam($dir, $prefix), 'w!', $cb);
        }
        $tries = 0;
        static::tempnamHandler($dir, $prefix, $cb, $tries);
    }
public static function tempnam ( $ dir , $ prefix , $ cb ) { $ cb = CallbackWrapper :: forceWrap ( $ cb ) ; if ( ! FileSystem :: $ supported ) { FileSystem :: open ( tempnam ( $ dir , $ prefix ) , 'w!' , $ cb ) ; } $ tries = 0 ; static :: tempnamHandler ( $ dir , $ prefix , $ cb , $ tries ) ; }
Obtain exclusive temporary file
@param  string $dir Directory
@param  string $prefix Prefix
@param  callable $cb Callback (File)
@return resource
Obtain exclusive temporary file