PHP  
 PHP_7_1
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(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/php_gcov/PHP_7_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8

Warning: fopen(): Failed to enable crypto in /var/php_gcov/PHP_7_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8

Warning: fopen(http://www.php.net): failed to open stream: operation failed in /var/php_gcov/PHP_7_1/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_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 13
bool(false)

Diff

001+ Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages:
001- bool(true)
002+ error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/php_gcov/PHP_7_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8
003+ 
004+ Warning: fopen(): Failed to enable crypto in /var/php_gcov/PHP_7_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8
005+ 
006+ Warning: fopen(http://www.php.net): failed to open stream: operation failed in /var/php_gcov/PHP_7_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 8
007+ 
008+ Warning: socket_get_option() expects parameter 1 to be resource, null given in /var/php_gcov/PHP_7_1/ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.php on line 13
009+ bool(false)

 

Generated at Wed, 01 Dec 2021 02:17:55 +0000 (2 days ago)

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