mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
17 lines
508 B
Text
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
|