mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
49b4e12e54
Bison can't detect the type of a mid-rule action, even if it accesses $<str>$, so need to create a separate rule for this.
16 lines
230 B
PHP
16 lines
230 B
PHP
--TEST--
|
|
eval() parse error on function with doc comment
|
|
--FILE--
|
|
<?php
|
|
|
|
eval(
|
|
<<<EOC
|
|
/** doc comment */
|
|
function f() {
|
|
EOC
|
|
);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected end of file in %s(%d) : eval()'d code on line %d
|