classes/phing/system/io/FileSystem.php
public function chmod($pathname, $mode)
    {
        $str_mode = decoct($mode); // Show octal in messages.
        if (false === @chmod($pathname, $mode)) { // FAILED.
            $msg = "FileSystem::chmod() FAILED. Cannot chmod $pathname. Mode $str_mode." . (isset($php_errormsg) ? ' ' . $php_errormsg : "");
            throw new IOException($msg);
        }
    }
public function chmod($pathname, $mode)
    {
        $str_mode = decoct($mode); // Show octal in messages.
        if (false === @chmod($pathname, $mode)) { // FAILED.
            $msg = "FileSystem::chmod() FAILED. Cannot chmod $pathname. Mode $str_mode." . (isset($php_errormsg) ? ' ' . $php_errormsg : "");
            throw new IOException($msg);
        }
    }
public function chmod ( $ pathname , $ mode ) { $ str_mode = decoct ( $ mode ) ; // Show octal in messages. if ( false === @ chmod ( $ pathname , $ mode ) ) { // FAILED. $ msg = "FileSystem::chmod() FAILED. Cannot chmod $pathname. Mode $str_mode." . ( isset ( $ php_errormsg ) ? ' ' . $ php_errormsg : "" ) ; throw new IOException ( $ msg ) ; } }
Change the permissions on a file or directory.

@param string $pathname Path and name of file or directory.
@param int $mode The mode (permissions) of the file or
directory. If using octal add leading 0. eg. 0777.
Mode is affected by the umask system setting.

@return void
@throws IOException if operation failed.
Change the permissions on a file or directory .