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

Valgrind 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:     
'cafile' => 'http://curl.haxx.se/ca/cacert.pem'
4:
]]);
5:
file_get_contents('https://github.com'false$clientCtx);
6:

Report

==20032== Conditional jump or move depends on uninitialised value(s)
==20032==    at 0x50284E: php_openssl_enable_crypto (xp_ssl.c:1792)
==20032==    by 0x50446F: php_openssl_sockop_set_option (xp_ssl.c:2226)
==20032==    by 0xE3B2DF: _php_stream_set_option (streams.c:1357)
==20032==    by 0xE52F08: php_stream_xport_crypto_enable (transports.c:384)
==20032==    by 0x504604: php_openssl_sockop_set_option (xp_ssl.c:2251)
==20032==    by 0xE3B2DF: _php_stream_set_option (streams.c:1357)
==20032==    by 0xE528CE: php_stream_xport_connect (transports.c:243)
==20032==    by 0xE51FB7: _php_stream_xport_create (transports.c:143)
==20032==    by 0xCED35C: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:210)
==20032==    by 0xCF4DE7: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:917)
==20032==    by 0xCF52FA: php_stream_url_wrap_http (http_fopen_wrapper.c:981)
==20032==    by 0xE3E274: _php_stream_open_wrapper_ex (streams.c:2059)
==20032== 

 

Generated at Mon, 22 Jan 2018 09:49:31 +0000 (22 hours ago)

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