]> granicus.if.org Git - php/commitdiff
fix first part of bug #44654: scan for opening tag <? after a # char
authorNuno Lopes <nlopess@php.net>
Sun, 6 Jul 2008 15:53:23 +0000 (15:53 +0000)
committerNuno Lopes <nlopess@php.net>
Sun, 6 Jul 2008 15:53:23 +0000 (15:53 +0000)
Zend/zend_language_scanner.l

index 483081064024601d6ec91789dea2af16e21b86c1..e8b8cd7f432df671d4f28af10a0d5313d2a99c8c 100644 (file)
@@ -1626,6 +1626,8 @@ NOWDOC_CHARS              ({NEWLINE}*(([^a-zA-Z_\x7f-\xff\n\r][^\n\r]*)|({LABEL}[^a-zA-Z0-9_
 
 <INITIAL>{ANY_CHAR} {
 
+inline_char_handler:
+
        while (1) {
                YYCTYPE *ptr = memchr(YYCURSOR, '<', YYLIMIT - YYCURSOR);
 
@@ -1646,8 +1648,6 @@ NOWDOC_CHARS              ({NEWLINE}*(([^a-zA-Z_\x7f-\xff\n\r][^\n\r]*)|({LABEL}[^a-zA-Z0-9_
                }
        }
 
-inline_char_handler:
-
 #ifdef ZEND_MULTIBYTE
        if (SCNG(output_filter)) {
                int readsize;