diff --git a/src/Util/PHP/Template/TestCaseMethod.tpl.dist b/src/Util/PHP/Template/TestCaseMethod.tpl.dist index 47ef6e48a60..c7172b9d887 100644 --- a/src/Util/PHP/Template/TestCaseMethod.tpl.dist +++ b/src/Util/PHP/Template/TestCaseMethod.tpl.dist @@ -58,7 +58,7 @@ function __phpunit_run_isolated_test() $output = $test->getActualOutput(); } - rewind(STDOUT); + @rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */ if ($stdout = stream_get_contents(STDOUT)) { $output = $stdout . $output; } diff --git a/src/Util/PHP/eval-stdin.php b/src/Util/PHP/eval-stdin.php index fe1b8bd38d2..3b3a6d03c4d 100644 --- a/src/Util/PHP/eval-stdin.php +++ b/src/Util/PHP/eval-stdin.php @@ -1,3 +1,3 @@ ' . file_get_contents('php://input')); +eval('?>' . file_get_contents('php://stdin'));