#45928 [NEW]: large scripts from stdin are stripped at 16K border

[email protected] ("[email protected]")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             [email protected]
Operating system: Mac OS X 10.5
PHP version:      5.3CVS-2008-08-26 (CVS)
PHP Bug Type:     CGI related
Bug description:  large scripts from stdin are stripped at 16K border

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 bug report at http://bugs.php.net/?id=45928&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45928&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45928&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45928&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45928&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=45928&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45928&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45928&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45928&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45928&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45928&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=45928&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=45928&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45928&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45928&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45928&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45928&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45928&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45928&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45928&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45928&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.