Skip to content

Commit 284a69f

Browse files
committed
Correct fix for #1956
1 parent 7b58ff0 commit 284a69f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Util/PHP/Template/TestCaseMethod.tpl.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function __phpunit_run_isolated_test()
5555
$output = $test->getActualOutput();
5656
}
5757

58-
rewind(STDOUT);
58+
@rewind(STDOUT); /* @ as not every STDOUT target stream is rewindable */
5959
if ($stdout = stream_get_contents(STDOUT)) {
6060
$output = $stdout . $output;
6161
}

src/Util/PHP/eval-stdin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
eval('?>' . file_get_contents('php://input'));
3+
eval('?>' . file_get_contents('php://stdin'));

0 commit comments

Comments
 (0)