classes/phing/system/io/FileSystem.php
public function unlock(PhingFile $f)
    {
        $filename = $f->getPath();
        $fp = @fopen($filename, "w");
        $result = @flock($fp, LOCK_UN);
        fclose($fp);
        if (!$result) {
            throw new IOException("Could not unlock file '$filename'");
        }
    }
public function unlock(PhingFile $f)
    {
        $filename = $f->getPath();
        $fp = @fopen($filename, "w");
        $result = @flock($fp, LOCK_UN);
        fclose($fp);
        if (!$result) {
            throw new IOException("Could not unlock file '$filename'");
        }
    }
public function unlock ( PhingFile $ f ) { $ filename = $ f -> getPath ( ) ; $ fp = @ fopen ( $ filename , "w" ) ; $ result = @ flock ( $ fp , LOCK_UN ) ; fclose ( $ fp ) ; if ( ! $ result ) { throw new IOException ( "Could not unlock file '$filename'" ) ; } }
Unlocks a file and throws an IO Error if this is not possible.

@param  PhingFile $f
@throws IOException
@return void
Unlocks a file and throws an IO Error if this is not possible .