Skip to content

Commit 326ee41

Browse files
committed
ext/standard/tests/http: Fix tests
1 parent 89fe907 commit 326ee41

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/standard/tests/http/ghsa-52jp-hrpf-2jff-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $clientCode = <<<'CODE'
3535
3636
$ctx = stream_context_create();
3737
stream_context_set_params($ctx, array("notification" => "stream_notification_callback"));
38-
var_dump(trim(file_get_contents("http://{{ ADDR }}", false, $ctx)));
38+
var_dump(file_get_contents("http://{{ ADDR }}", false, $ctx));
3939
var_dump($http_response_header);
4040
CODE;
4141

@@ -47,7 +47,7 @@ Found the mime-type: text/html;
4747
Redirected: string(8000) "%s"
4848

4949
Warning: file_get_contents(http://127.0.0.1:%d): Failed to open stream: %s
50-
string(0) ""
50+
bool(false)
5151
array(3) {
5252
[0]=>
5353
string(15) "HTTP/1.0 301 Ok"

ext/standard/tests/http/ghsa-52jp-hrpf-2jff-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $clientCode = <<<'CODE'
3535
3636
$ctx = stream_context_create();
3737
stream_context_set_params($ctx, array("notification" => "stream_notification_callback"));
38-
var_dump(trim(file_get_contents("http://{{ ADDR }}", false, $ctx)));
38+
var_dump(file_get_contents("http://{{ ADDR }}", false, $ctx));
3939
var_dump($http_response_header);
4040
CODE;
4141

@@ -46,7 +46,7 @@ ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
4646
Found the mime-type: text/html;
4747

4848
Warning: file_get_contents(http://127.0.0.1:%d): Failed to open stream: HTTP Location header size is over the limit of 8182 bytes in %s
49-
string(0) ""
49+
bool(false)
5050
array(2) {
5151
[0]=>
5252
string(15) "HTTP/1.0 301 Ok"

0 commit comments

Comments
 (0)