fp = $fp; // while (!feof($fp)) { // $buffer = fgets($fp, 4096); // echo $buffer; // } } public function hasData() { return !feof( $this->fp ); } public function getNextLine() { if ( feof( $this->fp ) ) { if ( $this->fp != null ) { fclose( $this->fp ); $this->fp = null; } return null; } $next = fgets( $this->fp ); if ( $next == "" && feof( $this->fp ) ) // eat last linebreak { return null; } return $next; } public function nextMail() { return false; } } class ExtendedMail extends ezcMail { } class myConverter { public static function convertToUTF8Iconv( $text, $originalCharset ) { if ( $originalCharset === 'unknown-8bit' || $originalCharset === 'x-user-defined' ) { $originalCharset = "latin1"; } // '@' is to avoid notices on broken input - see issue #8369 return @iconv( $originalCharset, 'utf-8', $text ); } public static function convertToUTF8IconvIgnore( $text, $originalCharset ) { if ( $originalCharset === 'unknown-8bit' || $originalCharset === 'x-user-defined' ) { $originalCharset = "latin1"; } // '@' is to avoid notices on broken input - see issue #8369 return @iconv( $originalCharset, 'utf-8//IGNORE', $text ); } public static function convertToUTF8IconvTranslit( $text, $originalCharset ) { if ( $originalCharset === 'unknown-8bit' || $originalCharset === 'x-user-defined' ) { $originalCharset = "latin1"; } // '@' is to avoid notices on broken input - see issue #8369 return @iconv( $originalCharset, 'utf-8//TRANSLIT', $text ); } public static function convertToUTF8Mbstring( $text, $originalCharset ) { return mb_convert_encoding( $text, "UTF-8", $originalCharset ); } } class myCustomFileClass extends ezcMailFile { } ?>