protected static function _findHeader($text, $eol) { $hdr_pos = strpos($text, $eol . $eol); return $hdr_pos === false ? strlen($text) : $hdr_pos; }