mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix return value of close and several IDE warning
This commit is contained in:
parent
29f84a83f9
commit
66611329e9
@ -12,7 +12,7 @@
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
if (!isset($_REQUEST['domain'])) $_REQUEST['domain'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : 'default';
|
||||
if (!isset($_REQUEST['domain'])) $_REQUEST['domain'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : 'ralfsmacbook.local';//'default';
|
||||
$path_to_egroupware = realpath(dirname(__FILE__).'/../..'); // need to be adapted if this script is moved somewhere else
|
||||
|
||||
// remove the comment from one of the following lines to enable loging
|
||||
|
@ -377,6 +377,10 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret = true;
|
||||
}
|
||||
$ret = fclose($this->opened_stream) && $ret;
|
||||
|
||||
unset(self::$stat_cache[$this->opened_path]);
|
||||
@ -895,7 +899,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
* Chgrp command, not yet a stream-wrapper function, but necessary
|
||||
*
|
||||
* @param string $url
|
||||
* @param int $group
|
||||
* @param int $owner
|
||||
* @return boolean
|
||||
*/
|
||||
static function chgrp($url,$owner)
|
||||
@ -975,8 +979,8 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
/**
|
||||
* This method is called immediately when your stream object is created for examining directory contents with opendir().
|
||||
*
|
||||
* @param string $path URL that was passed to opendir() and that this object is expected to explore.
|
||||
* @param $options
|
||||
* @param string $url URL that was passed to opendir() and that this object is expected to explore.
|
||||
* @param int $options
|
||||
* @return booelan
|
||||
*/
|
||||
function dir_opendir ( $url, $options )
|
||||
@ -1033,7 +1037,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
* The last 3 digits are exactly the same thing as what you pass to chmod.
|
||||
* 040000 defines a directory, and 0100000 defines a file.
|
||||
*
|
||||
* @param string $path
|
||||
* @param string $url
|
||||
* @param int $flags holds additional flags set by the streams API. It can hold one or more of the following values OR'd together:
|
||||
* - STREAM_URL_STAT_LINK For resources with the ability to link to other resource (such as an HTTP Location: forward,
|
||||
* or a filesystem symlink). This flag specified that only information about the link itself should be returned,
|
||||
@ -1246,7 +1250,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
|
||||
*
|
||||
* The readlink value is read by url_stat or dir_opendir and therefore cached in the stat-cache.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $path
|
||||
* @return string|boolean content of the symlink or false if $url is no symlink (or not found)
|
||||
*/
|
||||
static function readlink($path)
|
||||
|
Loading…
Reference in New Issue
Block a user