Merge 956056511a into dbdf5f7f38
This commit is contained in:
2 files changed
+72
-35
No files matched your search
@@ -23,6 +23,19 @@ class GlobalFunctionsHelper
|
||||
return fopen($fileName, $mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function fread()
|
||||
* @see fread()
|
||||
*
|
||||
* @param resource $handle
|
||||
* @param int|null $length
|
||||
* @return string
|
||||
*/
|
||||
public function fread($handle, $length = null)
|
||||
{
|
||||
return fread($handle, $length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function fgets()
|
||||
* @see fgets()
|
||||
@@ -67,11 +80,24 @@ class GlobalFunctionsHelper
|
||||
*
|
||||
* @param resource $handle
|
||||
* @param int $offset
|
||||
* @param int $whence
|
||||
* @return int
|
||||
*/
|
||||
public function fseek($handle, $offset)
|
||||
public function fseek($handle, $offset, $whence = SEEK_SET)
|
||||
{
|
||||
return fseek($handle, $offset);
|
||||
return fseek($handle, $offset, $whence);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around global function ftell()
|
||||
* @see fseek()
|
||||
*
|
||||
* @param resource $handle
|
||||
* @return bool|int
|
||||
*/
|
||||
public function ftell($handle)
|
||||
{
|
||||
return ftell($handle);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user