php-src/Zend/tests/eval_parse_error_with_doc_comment.phpt
Nikita Popov 49b4e12e54 Add backup_doc_comment production
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.
2014-08-26 22:31:58 +02:00

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