Skip to content

Commit 45582d7

Browse files
committed
attempt 2 to make both Linux and Windows happy
1 parent 4300417 commit 45582d7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/standard/tests/http/gh19249_no_stream.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $serverCode = '';
1111
include __DIR__."/../../../../sapi/cli/tests/php_cli_server.inc";
1212
php_cli_server_start($serverCode, null, []);
1313

14-
$postData = proc_open("echo Windows sucks", [], $pipes);
14+
$postData = proc_open("echo", [0 => ["pipe", "r"], 1 => ["pipe", "w"], 2 => ["pipe", "w"]], $pipes);
1515

1616
$headers = [
1717
[],
@@ -36,7 +36,6 @@ foreach ($headers as $header) {
3636

3737
proc_close($postData);
3838
?>
39-
--EXPECTF--
40-
%A
39+
--EXPECT--
4140
file_get_contents(): "content" resource is not a valid stream resource
4241
file_get_contents(): "content" resource is not a valid stream resource

0 commit comments

Comments
 (0)