#35382 [Csd->Opn]: Comment in end of file produces fatal error

From: Date: Sat, 26 Nov 2005 16:31:38 +0000
Subject: #35382 [Csd->Opn]: Comment in end of file produces fatal error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89046@lists.php.net to get a copy of this message
 ID:               35382
 Updated by:       helly@php.net
 Reported By:      stochnagara at hotmail dot com
-Status:           Closed
+Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: *
 PHP Version:      5.1.0
 Assigned To:      helly
 New Comment:

Not completeley fixed


Previous Comments:
------------------------------------------------------------------------

[2005-11-26 14:15:48] tony2001@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[2005-11-25 16:06:29] johannes@php.net

http://cvs.php.net/diff.php/ZendEngine2/zend_language_scanner.l?r1=1.131.2.3&r2=1.131.2.4&ty=u
   
  
Broke it. 

------------------------------------------------------------------------

[2005-11-25 15:11:32] gumatu at web dot de

I stumbled over this bug too.
WinXP with IIS and PHP 5.1.0

------------------------------------------------------------------------

[2005-11-25 11:09:36] tony2001@php.net

Works fine here.
Any chance you can try it on non-Win32 OS too ?

------------------------------------------------------------------------

[2005-11-25 08:02:49] stochnagara at hotmail dot com

Description:
------------
This is a recent bug since it used to work with most of the 5.1 release
candidates. See the sample. The line with the comment is the last line
of the php code

Reproduce code:
---------------
<?
echo 'hello';
//last line comment

Expected result:
----------------
hello

Actual result:
--------------
Fatal error: fatal flex scanner internal error--end of buffer missed in
.....\php-bug35382.php on line 3



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35382&edit=1


Thread (8 messages)

« previous php.bugs (#89046) next »