PHP  
 PHP_7_2
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/standard/tests/streams/stream_context_tcp_nodelay.phpt ('stream context tcp_nodelay')

Script

1: <?php
2: $ctxt 
stream_context_create([
3:     
"socket" => [
4:         
"tcp_nodelay" => true
5:     
]
6: ]);
7:
8:
$stream stream_socket_client(
9:     
"tcp://www.php.net:80"$errno$errstr10STREAM_CLIENT_CONNECT$ctxt);
10:
11:
$socket =
12:     
socket_import_stream($stream);
13:
14:
var_dump(socket_get_option($socketSOL_TCPTCP_NODELAY) > 0);
15:
?>
16:

Expected

bool(true)

Output

Warning: stream_socket_client(): unable to connect to tcp://www.php.net:80 (Connection timed out) in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay.php on line 9

Warning: socket_import_stream() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay.php on line 12

Warning: socket_get_option() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay.php on line 14
bool(false)

Diff

001+ Warning: stream_socket_client(): unable to connect to tcp://www.php.net:80 (Connection timed out) in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay.php on line 9
001- bool(true)
002+ 
003+ Warning: socket_import_stream() expects parameter 1 to be resource, boolean given in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay.php on line 12
004+ 
005+ Warning: socket_get_option() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay.php on line 14
006+ bool(false)

 

Generated at Thu, 06 Dec 2018 13:01:04 +0000 (4 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.