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_fopen.phpt ('stream context tcp_nodelay fopen')

Script

1: <?php
2: $ctxt 
stream_context_create([
3:     
"socket" => [
4:         
"tcp_nodelay" => true
5:     
]
6: ]);
7:
8:
$stream fopen("http://www.php.net""r"false,  $ctxt);
9:
10:
$socket 
11:     @
socket_import_stream($stream);
12:
13:
var_dump(socket_get_option($socketSTREAM_IPPROTO_TCPTCP_NODELAY) > 0);
14:
?>
15:

Expected

bool(true)

Output

Warning: fopen(http://www.php.net): failed to open stream: Connection timed out in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8

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_fopen.php on line 13
bool(false)

Diff

001+ Warning: fopen(http://www.php.net): failed to open stream: Connection timed out in /var/php_gcov/PHP_7_2/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8
001- bool(true)
002+ 
003+ 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_fopen.php on line 13
004+ bool(false)

 

Generated at Thu, 12 Jul 2018 17:17:45 +0000 (8 days ago)

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