Merge branch 'PHP-7.0'

Conflicts:
	Zend/zend_language_scanner.c
This commit is contained in:
Nikita Popov 2016-03-06 21:39:20 +01:00
commit 35b34d7235
3 changed files with 237 additions and 216 deletions

19
Zend/tests/bug71724.phpt Normal file
View File

@ -0,0 +1,19 @@
--TEST--
Bug #71724: yield from does not count EOLs
--FILE--
<?php
function test()
{
yield
from [__LINE__];
}
var_dump(test()->current());
?>
--EXPECT--
int(10)

File diff suppressed because it is too large Load Diff

View File

@ -1128,6 +1128,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
}
<ST_IN_SCRIPTING>"yield"{WHITESPACE}"from" {
HANDLE_NEWLINES(yytext, yyleng);
RETURN_TOKEN(T_YIELD_FROM);
}