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

==18743== Conditional jump or move depends on uninitialised value(s)
==18743==    at 0x50284E: php_openssl_enable_crypto (xp_ssl.c:1792)
==18743==    by 0x50446F: php_openssl_sockop_set_option (xp_ssl.c:2226)
==18743==    by 0xE3B2E3: _php_stream_set_option (streams.c:1357)
==18743==    by 0xE52F0C: php_stream_xport_crypto_enable (transports.c:384)
==18743==    by 0x504604: php_openssl_sockop_set_option (xp_ssl.c:2251)
==18743==    by 0xE3B2E3: _php_stream_set_option (streams.c:1357)
==18743==    by 0xE528D2: php_stream_xport_connect (transports.c:243)
==18743==    by 0xE51FBB: _php_stream_xport_create (transports.c:143)
==18743==    by 0xCED360: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:210)
==18743==    by 0xCF4DEB: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:917)
==18743==    by 0xCF52FE: php_stream_url_wrap_http (http_fopen_wrapper.c:981)
==18743==    by 0xE3E278: _php_stream_open_wrapper_ex (streams.c:2059)
==18743== 

 

Generated at Fri, 10 Nov 2017 14:18:45 +0000 (7 days ago)

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