traits/file_resources.php
final protected function fread($length = null)
	{
		if (! is_int($length)) {
			$length = $this->fstat('size');
		}
		return fread($this->fhandle, $length);
	}
final protected function fread($length = null)
	{
		if (! is_int($length)) {
			$length = $this->fstat('size');
		}
		return fread($this->fhandle, $length);
	}
final protected function fread ( $ length = null ) { if ( ! is_int ( $ length ) ) { $ length = $ this -> fstat ( 'size' ) ; } return fread ( $ this -> fhandle , $ length ) ; }
Binary-safe file read

@param  int    $length Up to $length number of bytes read.
@return string         The read string or FALSE on failure.
@see https://php.net/manual/en/function.fread.php
Binary - safe file read