large scripts from stdin are stripped at 16K border
| Bug #45928 | large scripts from stdin are stripped at 16K border | ||||
|---|---|---|---|---|---|
| Submitted: | 2008-08-26 18:24 UTC | Modified: | 2008-09-10 10:31 UTC | ||
| From: | indeyets@php.net | Assigned: | |||
| Status: | Closed | Package: | CGI/CLI related | ||
| PHP Version: | 5.3CVS-2008-08-26 (CVS) | OS: | Mac OS X 10.5 | ||
| Private report: | No | CVE-ID: | None | ||
[2008-08-26 18:24 UTC] 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 ?
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-09-09 12:00 UTC] cschneid at cschneid dot com
[2008-09-10 10:31 UTC] lbarnaud@php.net