#45928 [Opn->Ctl]: large scripts from stdin are stripped at 16K border
| From: | jani@php.net | Date: | Sun, 31 Aug 2008 00:22:18 +0000 |
| Subject: | #45928 [Opn->Ctl]: large scripts from stdin are stripped at 16K border | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128566@lists.php.net to get a copy of this message | ||
ID: 45928
Updated by: jani@php.net
Reported By: indeyets@php.net
-Status: Open
+Status: Critical
Bug Type: CGI related
Operating System: Mac OS X 10.5
PHP Version: 5.3CVS-2008-08-26 (CVS)
Previous Comments:
------------------------------------------------------------------------
[2008-08-26 18:24:52] indeyets@php.net
Description:
------------
any php-file which is larger that 16Kb will result in parse error on
Mac OS X, if run as following:
cat largefile.php|php -l
while the following options will work:
php -l largefile.php
php -l < largefile.php
"-l" flag is optional. it can be reproduced without it too
I discussed this with Rasmus (he was able to reproduce this problem
too), and he mentioned, that this bug is most likely re2c-related
Expected result:
----------------
No syntax errors detected in -
Actual result:
--------------
PHP Parse error: syntax error, unexpected $end in
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45928&edit=1