Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions tests/phpt/tcp/basic_connections.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@ok k2_skip tcp_server:48091
k2_skip: call to unsupported function : fgetc
k2_skip: call to unsupported function : fgetc, feof
<?php

function test_simple_connection($address, $request) {
Expand Down Expand Up @@ -33,10 +33,6 @@ function test_full_response($address, $request) {
}
}

function test_no_close($address, $request) {
$fp = stream_socket_client($address, $errno, $errstr);
}


test_simple_connection("tcp://bad_address", "GET / HTTP/1.0\r\nHost: 127.0.0.1:48091\r\nAccept: */*\r\n\r\n");
test_simple_connection("tcp://wrong_address:80", "GET / HTTP/1.0\r\nHost: 127.0.0.1:48091\r\nAccept: */*\r\n\r\n");
Expand All @@ -46,5 +42,3 @@ function test_no_close($address, $request) {

test_full_response("tcp://127.0.0.1:48091", "GET / HTTP/1.0\r\nHost: 127.0.0.1:48091\r\nAccept: */*\r\n\r\n");
test_full_response("tcp://127.0.0.1:48091", "GET / HTTP/1.0\r\nHost: not_working.com:80\r\nAccept: */*\r\n\r\n");

test_no_close("tcp://127.0.0.1:48091", "GET / HTTP/1.0\r\nHost: 127.0.0.1:48091\r\nAccept: */*\r\n\r\n");
9 changes: 9 additions & 0 deletions tests/phpt/tcp/no_close.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@ok tcp_server:48093
<?php

function test_no_close($address, $request) {
$fp = stream_socket_client($address, $errno, $errstr);
}


test_no_close("tcp://127.0.0.1:48091", "GET / HTTP/1.0\r\nHost: 127.0.0.1:48091\r\nAccept: */*\r\n\r\n");
Loading