Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66052 invoked by uid 1010); 23 Mar 2006 17:36:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66037 invoked from network); 23 Mar 2006 17:36:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2006 17:36:50 -0000 X-Host-Fingerprint: 194.109.193.120 unknown Linux 2.5 (sometimes 2.4) (4) Received: from ([194.109.193.120:41293] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 77/41-11806-2BCD2244 for ; Thu, 23 Mar 2006 12:36:50 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id ADEF7154D3D for ; Thu, 23 Mar 2006 18:36:52 +0100 (CET) Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (moulin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00988-04 for ; Thu, 23 Mar 2006 18:36:50 +0100 (CET) Received: from [192.168.1.12] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id 8767D154C6C for ; Thu, 23 Mar 2006 18:36:50 +0100 (CET) Message-ID: <4422DCAB.7040206@iamjochem.com> Date: Thu, 23 Mar 2006 18:36:43 +0100 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: php internals X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at moulin.nl Subject: what is "Fatal error: fatal flex scanner internal error"? From: jochem@iamjochem.com (Jochem Maas) today I have been playing with php5.1.x and on 2 different machines (completely different files) I got an error rather like the one below: Fatal error: fatal flex scanner internal error--end of buffer missed in /var/www/santos/www/intranet/index.php on line 52 in each file the last 'token' in the file was a comment, in the index.php mentioned above line 52 is the last line and contains: // require_once 'end.inc.php'; is there something broken in the engine whereby the last token is not allowed to be a comment? (I never add the closing '?>' because it saves a lot of 'header outputted at ' kind of errors -- has that been declared a bad thing all of a sudden?) rgds, Jochem PS: in the other file that I got the 'fatal flex scanner internal error' the last line was part of a multiline commenting out some php code as follows: //* if (defined('DEBUG') && DEBUG) { // output some debug info to the message handler... // MsgHandler::addMsg(new Msg(Msg::Debug, '_GET/_POST (merged)', pre_print(array_merge($_GET, $_POST), true))); if (function_exists('apc_cache_info') && ini_get('apc.enabled')) { MsgHandler::addMsg(new Msg(Msg::Debug, 'APC Cache Info', pre_print(apc_cache_info(), true) )); MsgHandler::addMsg(new Msg(Msg::Debug, 'APC SMA Info', pre_print(apc_sma_info(), true) )); } MsgHandler::addMsg(new Msg(Msg::Debug, '_GET', pre_print($_GET, true) )); MsgHandler::addMsg(new Msg(Msg::Debug, '_POST', pre_print($_POST, true) )); MsgHandler::addMsg(new Msg(Msg::Debug, '_SERVER', pre_print($_SERVER, true) )); MsgHandler::addMsg(new Msg(Msg::Debug, 'Make Filter', pre_print(Shop::getMake(), true)." ..." )); } //*/