|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46012 formfeeds are not considered whitespace
Submitted: 2008-09-06 18:18 UTC Modified: 2018-08-14 15:33 UTC
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sebastian_rose at gmx dot de Assigned:
Status: Suspended Package: Scripting Engine problem
PHP Version: 5.2.6 OS: Debian testing
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 - 31 = ?
Subscribe to this entry?

 [2008-09-06 18:18 UTC] sebastian_rose at gmx dot de
Formfeeds in PHP scripts trigger a warning, i.e. are NOT considered whitespace a usual.

Reproduce code:
  /* == Add a formfeed for pageing big files in emacs == */

// 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 - 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 />


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-06 19:19 UTC] sebastian_rose at gmx dot de
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]+

should be

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

 [2016-12-31 00:29 UTC]
-Package: Feature/Change Request +Package: Scripting Engine problem
 [2018-08-14 15:33 UTC]
-Status: Open +Status: Suspended
 [2018-08-14 15:33 UTC]
Are you still interested in this “feature”?  It seems to me that
FF have been not uncommon years ago, but are somehow a relict of
the past, so this should be discussed on the internals@ mailing
list.  For the time being, I'm suspending this ticket.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 25 23:01:24 2020 UTC