This commit is contained in:
agolovenkin authored and GitHub committed 2019-10-28 01:18:31 +01:00
commit f9aa61d6f3
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);
}
/**