Browse Source

Fixed bug #46844 (php scripts or included files with first line starting


			
			
				experimental/5.3-FPM
			
			
		
Ilia Alshanetsky 17 years ago
parent
commit
fec58a89ee
  1. 6
      Zend/zend_language_scanner.c
  2. 4
      Zend/zend_language_scanner.l

6
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;

4
Zend/zend_language_scanner.l

@ -843,8 +843,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;

Loading…
Cancel
Save