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

Valgrind Report for ext/openssl/tests/streams_crypto_method.phpt ('Specific crypto method for ssl:// transports.')

Script

1: <?php
2: $serverCode 
= <<<'CODE'
3:
    $serverUri = "ssl://127.0.0.1:64321";
4:     $serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
5:     $serverCtx = stream_context_create(['ssl' => [
6:         'local_cert' => __DIR__ . '/streams_crypto_method.pem',
7:     ]]);
8:
9:     $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
10:     phpt_notify();
11:
12:     $client = @stream_socket_accept($server);
13:     if ($client) {
14:         $in = '';
15:         while (!preg_match('/\r?\n\r?\n/', $in)) {
16:             $in .= fread($client, 2048);
17:         }
18:         $response = "HTTP/1.0 200 OK\r\n"
19:                   . "Content-Type: text/plain\r\n"
20:                   . "Content-Length: 12\r\n"
21:                   . "Connection: close\r\n"
22:                   . "\r\n"
23:                   . "Hello World!";
24:         fwrite($client, $response);
25:         fclose($client);
26:     }
27:
CODE;
28:
29:
$clientCode = <<<'CODE'
30:
    $serverUri = "https://127.0.0.1:64321/";
31:     $clientFlags = STREAM_CLIENT_CONNECT;
32:     $clientCtx = stream_context_create(['ssl' => [
33:         'crypto_method' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
34:         'verify_peer' => false,
35:         'verify_peer_name' => false
36:     ]]);
37:
38:     phpt_wait();
39:     echo file_get_contents($serverUri, false, $clientCtx);
40:
CODE;
41:
42: include 
'ServerClientTestCase.inc';
43:
ServerClientTestCase::getInstance()->run($clientCode$serverCode);
44:

Report

==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0x8AB36B3: ssl3_read_bytes (in /usr/lib64/libssl.so.1.0.1e)
==3969==    by 0x8AAEEBF: ??? (in /usr/lib64/libssl.so.1.0.1e)
==3969==    by 0x50AE39: php_openssl_sockop_io (xp_ssl.c:1806)
==3969==    by 0x50AB35: php_openssl_sockop_read (xp_ssl.c:1744)
==3969==    by 0xF51C84: php_stream_fill_read_buffer (streams.c:696)
==3969==    by 0xF529E0: _php_stream_get_line (streams.c:979)
==3969==    by 0xDFDAB3: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:678)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0x4C2A411: memchr (vg_replace_strmem.c:792)
==3969==    by 0xF526A4: php_stream_locate_eol (streams.c:879)
==3969==    by 0xF527C5: _php_stream_get_line (streams.c:926)
==3969==    by 0xDFDAB3: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:678)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==3969==    by 0xF526A4: php_stream_locate_eol (streams.c:879)
==3969==    by 0xF527C5: _php_stream_get_line (streams.c:926)
==3969==    by 0xDFDAB3: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:678)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969== 
==3969== Use of uninitialised value of size 8
==3969==    at 0xA631EC0: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631EE9: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631EF1: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631F01: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631F0B: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631F49: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631F76: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631FCF: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631FF9: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631FD8: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA631FDE: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Use of uninitialised value of size 8
==3969==    at 0xA631FB5: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xA632039: ____strtol_l_internal (in /lib64/libc-2.12.so)
==3969==    by 0xA62EC5F: atoi (in /lib64/libc-2.12.so)
==3969==    by 0xDFDB00: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:682)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xDFDC0E: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:696)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969==    by 0x11D62F9: do_cli (php_cli.c:982)
==3969==    by 0x11D7D7A: main (php_cli.c:1361)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xDFDC2C: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:696)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969==    by 0x11D62F9: do_cli (php_cli.c:982)
==3969==    by 0x11D7D7A: main (php_cli.c:1361)
==3969== 
==3969== Conditional jump or move depends on uninitialised value(s)
==3969==    at 0xDFDE10: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:715)
==3969==    by 0xDFFBB9: php_stream_url_wrap_http (http_fopen_wrapper.c:938)
==3969==    by 0xF58070: _php_stream_open_wrapper_ex (streams.c:2069)
==3969==    by 0xD16679: zif_file_get_contents (file.c:547)
==3969==    by 0xAA6B89: phar_file_get_contents (func_interceptors.c:219)
==3969==    by 0x10C6FEA: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:596)
==3969==    by 0x10C3CE4: execute_ex (zend_vm_execute.h:352)
==3969==    by 0x10C4962: zend_execute (zend_vm_execute.h:381)
==3969==    by 0x101C58E: zend_execute_scripts (zend.c:1271)
==3969==    by 0xF230B5: php_execute_script (main.c:2554)
==3969==    by 0x11D62F9: do_cli (php_cli.c:982)
==3969==    by 0x11D7D7A: main (php_cli.c:1361)
==3969== 

 

Generated at Mon, 26 Jan 2015 14:47:00 +0000 (3 days ago)

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