diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2009-01-01 20:16:24 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2009-01-01 20:16:24 +0000 |
commit | fec58a89eef7ccf431ff8cb534cb109c787e8851 (patch) | |
tree | 3e4a5cbcb5608ce2426a79f16efb7db367c64cc0 /Zend/zend_language_scanner.c | |
parent | 480fccce37f20ae81d3a48b88020634d6be88a87 (diff) | |
download | php-git-fec58a89eef7ccf431ff8cb534cb109c787e8851.tar.gz |
Fixed bug #46844 (php scripts or included files with first line starting
with # have the 1st line missed from the output).
Diffstat (limited to 'Zend/zend_language_scanner.c')
-rw-r--r-- | Zend/zend_language_scanner.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_language_scanner.c b/Zend/zend_language_scanner.c index 05a698a321..7034e88736 100644 --- a/Zend/zend_language_scanner.c +++ b/Zend/zend_language_scanner.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.13.6.dev on Tue Nov 4 01:40:34 2008 */ +/* Generated by re2c 0.13.5 on Thu Jan 1 15:13:42 2009 */ #line 1 "Zend/zend_language_scanner.l" /* +----------------------------------------------------------------------+ @@ -845,8 +845,8 @@ yymore_restart: return 0; } - /* ignore first line when it's started with a # */ - if (YYCURSOR == SCNG(yy_start) && *YYCURSOR == '#') { + /* ignore first line when it's started with a #! */ + if (YYCURSOR == SCNG(yy_start) && *YYCURSOR == '#' && *(YYCURSOR + 1) == '!') { while (++YYCURSOR < YYLIMIT) { if (*YYCURSOR == '\n') { ++YYCURSOR; |