]> granicus.if.org Git - php/commitdiff
- Fix bug #35406 eval hangs when evall'ed code ends with comment w/o newline
authorMarcus Boerger <helly@php.net>
Sat, 26 Nov 2005 13:09:28 +0000 (13:09 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 26 Nov 2005 13:09:28 +0000 (13:09 +0000)
Zend/zend_language_scanner.l

index 3ac7c97b529fed36f27c90b4d556248a04fab894..1d4798cdf90b15232f4d9fda013488df32a6f189 100644 (file)
@@ -2114,6 +2114,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
        zendlval->value.str.val = yytext; /* no copying - intentional */
        zendlval->value.str.len = yyleng;
        zendlval->type = IS_STRING;
+       BEGIN(ST_IN_SCRIPTING);
        return T_COMMENT;
 }