english/libraries/joomla/filesystem/stream.php
/**
	 * Work out if we're at the end of the file for a stream
	 *
	 * @return  boolean
	 *
	 * @since   11.1
	 */
Work out if we're at the end of the file for a stream
@return  boolean


Work out if we ' re at the end of the file for a stream @return boolean
function eof()
	{
		if (!$this->_fh) {
			$this->setError(JText::_('JLIB_FILESYSTEM_ERROR_STREAMS_FILE_NOT_OPEN'));
			return false;
		}
		$retval = false;
		$php_errormsg = '';
		$track_errors = ini_get('track_errors');
		ini_set('track_errors', true);
		switch($this->processingmethod)
		{
			case 'gz':
				$res = gzeof($this->_fh);
				break;
			case 'bz':
			case 'f':
			default:
				$res = feof($this->_fh);
				break;
		}
		if ($php_errormsg) {
			$this->setError($php_errormsg);
		}
		ini_set('track_errors', $track_errors);
		return $res;
	}
function eof ( ) { if ( ! $ this -> _fh ) { $ this -> setError ( JText :: _ ( 'JLIB_FILESYSTEM_ERROR_STREAMS_FILE_NOT_OPEN' ) ) ; return false ; } $ retval = false ; $ php_errormsg = '' ; $ track_errors = ini_get ( 'track_errors' ) ; ini_set ( 'track_errors' , true ) ; switch ( $ this -> processingmethod ) { case 'gz' : $ res = gzeof ( $ this -> _fh ) ; break ; case 'bz' : case 'f' : default : $ res = feof ( $ this -> _fh ) ; break ; } if ( $ php_errormsg ) { $ this -> setError ( $ php_errormsg ) ; } ini_set ( 'track_errors' , $ track_errors ) ; return $ res ; }
Work out if we're at the end of the file for a stream
 @return  boolean
Work out if we ' re at the end of the file for a stream @return boolean
// Capture PHP errors // Restore error tracking to what it was before // Return the result