php-src/sapi/phpdbg/tests/commands/0107_compile.test
Reeze Xia 46d9572945 Fixed phpdbg zend_bailout error when compiling syntax error code
@krakjoe if there is something wrong, tell me plz
2015-02-13 17:47:47 +08:00

17 lines
508 B
Text

#################################################
# name: compile
# purpose: test compiling error code
# expect: TEST::FORMAT
# options: -rr
#################################################
#[PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in %s on line %s]
#[Could not find information about included file...]
#################################################
<:
define('OUT',
tempnam(null, "phpdbg"));
file_put_contents(OUT, "<?error echo \"Hello World\"; ?>");
phpdbg_exec(OUT);
:>
run
quit