ID:               46012
 Comment by:       sebastian_rose at gmx dot de
 Reported By:      sebastian_rose at gmx dot de
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Debian testing
 PHP Version:      5.2.6
 New Comment:

It seems the error is in Zend/zend_language_scanner.l ???
As the grammar is defined in there? I never used yacc or bison ...


./Zend/zend_language_scanner.l, line 901 and 902:


WHITESPACE [ \n\r\t\f]+
TABS_AND_SPACES [ \t\f]*

should be

WHITESPACE [ \n\r\t\f]+
TABS_AND_SPACES [ \t\f]*

???


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

[2008-09-06 18:18:43] sebastian_rose at gmx dot de

Description:
------------
Formfeeds in PHP scripts trigger a warning, i.e. are NOT considered
whitespace a usual.

Reproduce code:
---------------
<?php
  /* == Add a formfeed for pageing big files in emacs == */

\f
// replace \f with a form feed to test.

?>

Expected result:
----------------
I expect to see nothing.

All libraries and compilers consider formfeeds a whitespace. I thought
about sending this as a bug report at first, but think it's enough to
have it here again (after http://bugs.php.net/bug.php?id=30125 - the
same but for Php 4.3.8, September 2004!!!).

I'd volunteer to change this if I someone points me to where to start.

Actual result:
--------------
<br />
<b>Warning</b>:  Unexpected character in input:  '' (ASCII=12) state=1
in <b>/path/to/test.php</b> on line <b>4</b><br />



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


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

Reply via email to