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/openssl/tests/bug65538_002.phpt ('Bug #65538: SSL context "cafile" disallows URL stream wrappers')

Script

1: <?php
2: $clientCtx 
stream_context_create(['ssl' => [
3:     
// We don't get any ca list from php.net but it does not matter as we
4:     // care about the fact that the external stream is not allowed.
5:     // We can't use http://curl.haxx.se/ca/cacert.pem for this test
6:     // as it is redirected to https which means the test would depend
7:     // on system cafile when opening stream.
8:     
'cafile' => 'http://www.php.net',
9: ]]);
10:
file_get_contents('https://github.com'false$clientCtx);
11:
?>
12:

Expected

Warning: remote cafile streams are disabled for security purposes in %s on line %d

Warning: file_get_contents(): Failed to enable crypto in %s on line %d

Warning: file_get_contents(%s): failed to open stream: operation failed in %s on line %d

Output

Warning: file_get_contents(): Connection timed out in /var/php_gcov/PHP_7_1/ext/openssl/tests/bug65538_002.php on line 10

Warning: failed loading cafile stream: `http://www.php.net' in /var/php_gcov/PHP_7_1/ext/openssl/tests/bug65538_002.php on line 10

Warning: file_get_contents(): Failed to enable crypto in /var/php_gcov/PHP_7_1/ext/openssl/tests/bug65538_002.php on line 10

Warning: file_get_contents(https://github.com): failed to open stream: operation failed in /var/php_gcov/PHP_7_1/ext/openssl/tests/bug65538_002.php on line 10

Diff

001+ Warning: file_get_contents(): Connection timed out in /var/php_gcov/PHP_7_1/ext/openssl/tests/bug65538_002.php on line 10
002+ 
003+ Warning: failed loading cafile stream: `http://www.php.net' in /var/php_gcov/PHP_7_1/ext/openssl/tests/bug65538_002.php on line 10
001- Warning: remote cafile streams are disabled for security purposes in %s on line %d

 

Generated at Fri, 01 Dec 2017 18:56:15 +0000 (15 days ago)

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