classes/phing/system/io/FileSystem.php
public function touch($file, $time = null)
    {
        global $php_errormsg;

        if (null === $time) {
            $error = @touch($file);
        } else {
            $error = @touch($file, $time);
        }

        if (false === $error) { // FAILED.
            // Add error from php to end of log message. $php_errormsg.
            $msg = "FileSystem::touch() FAILED. Cannot touch '$file'. $php_errormsg";
            throw new Exception($msg);
        }
    }
public function touch($file, $time = null)
    {
        global $php_errormsg;

        if (null === $time) {
            $error = @touch($file);
        } else {
            $error = @touch($file, $time);
        }

        if (false === $error) { // FAILED.
            // Add error from php to end of log message. $php_errormsg.
            $msg = "FileSystem::touch() FAILED. Cannot touch '$file'. $php_errormsg";
            throw new Exception($msg);
        }
    }
public function touch ( $ file , $ time = null ) { global $ php_errormsg ; if ( null === $ time ) { $ error = @ touch ( $ file ) ; } else { $ error = @ touch ( $ file , $ time ) ; } if ( false === $ error ) { // FAILED. // Add error from php to end of log message. $php_errormsg. $ msg = "FileSystem::touch() FAILED. Cannot touch '$file'. $php_errormsg" ; throw new Exception ( $ msg ) ; } }
Set the modification and access time on a file to the present time.

@param  string $file Path and/or name of file to touch.
@param  int $time
@throws Exception
@return void
Set the modification and access time on a file to the present time .