Skip to content

Commit cd128fe

Browse files
authored
move test_no_close out (#1571)
1 parent 6d3ad5f commit cd128fe

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

tests/phpt/tcp/basic_connections.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@ok k2_skip tcp_server:48091
2-
k2_skip: call to unsupported function : fgetc
2+
k2_skip: call to unsupported function : fgetc, feof
33
<?php
44

55
function test_simple_connection($address, $request) {
@@ -33,10 +33,6 @@ function test_full_response($address, $request) {
3333
}
3434
}
3535

36-
function test_no_close($address, $request) {
37-
$fp = stream_socket_client($address, $errno, $errstr);
38-
}
39-
4036

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

4743
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");
4844
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");
49-
50-
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");

tests/phpt/tcp/no_close.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@ok tcp_server:48093
2+
<?php
3+
4+
function test_no_close($address, $request) {
5+
$fp = stream_socket_client($address, $errno, $errstr);
6+
}
7+
8+
9+
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");

0 commit comments

Comments
 (0)