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

==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0x8AB16C3: ssl3_read_bytes (in /usr/lib64/libssl.so.1.0.1e)
==1178==    by 0x8AACEDF: ??? (in /usr/lib64/libssl.so.1.0.1e)
==1178==    by 0x50A6B4: php_openssl_sockop_read (xp_ssl.c:1790)
==1178==    by 0xF347A2: php_stream_fill_read_buffer (streams.c:696)
==1178==    by 0xF354FE: _php_stream_get_line (streams.c:979)
==1178==    by 0xDE123B: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:670)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0x4C29731: memchr (mc_replace_strmem.c:762)
==1178==    by 0xF351C2: php_stream_locate_eol (streams.c:879)
==1178==    by 0xF352E3: _php_stream_get_line (streams.c:926)
==1178==    by 0xDE123B: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:670)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==1178==    by 0xF351C2: php_stream_locate_eol (streams.c:879)
==1178==    by 0xF352E3: _php_stream_get_line (streams.c:926)
==1178==    by 0xDE123B: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:670)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178== 
==1178== Use of uninitialised value of size 8
==1178==    at 0xA62FEC0: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FEE9: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FEF1: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FF01: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FF0B: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FF49: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FF76: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FFCF: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FFF9: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FFD8: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA62FFDE: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Use of uninitialised value of size 8
==1178==    at 0xA62FFB5: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xA630039: ____strtol_l_internal (in /lib64/libc-2.12.so)
==1178==    by 0xA62CC5F: atoi (in /lib64/libc-2.12.so)
==1178==    by 0xDE1288: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:674)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xDE1396: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:688)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178==    by 0x11C01C5: do_cli (php_cli.c:978)
==1178==    by 0x11C1C3C: main (php_cli.c:1356)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xDE13B4: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:688)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178==    by 0x11C01C5: do_cli (php_cli.c:978)
==1178==    by 0x11C1C3C: main (php_cli.c:1356)
==1178== 
==1178== Conditional jump or move depends on uninitialised value(s)
==1178==    at 0xDE1598: php_stream_url_wrap_http_ex (http_fopen_wrapper.c:707)
==1178==    by 0xDE3341: php_stream_url_wrap_http (http_fopen_wrapper.c:930)
==1178==    by 0xF3AB11: _php_stream_open_wrapper_ex (streams.c:2069)
==1178==    by 0xD016DD: zif_file_get_contents (file.c:547)
==1178==    by 0xA96A13: phar_file_get_contents (func_interceptors.c:219)
==1178==    by 0x10AD8C8: ZEND_DO_FCALL_SPEC_HANDLER (zend_vm_execute.h:565)
==1178==    by 0x10AB26E: execute_ex (zend_vm_execute.h:352)
==1178==    by 0x10ABE50: zend_execute (zend_vm_execute.h:381)
==1178==    by 0x1004A48: zend_execute_scripts (zend.c:1266)
==1178==    by 0xF05C99: php_execute_script (main.c:2563)
==1178==    by 0x11C01C5: do_cli (php_cli.c:978)
==1178==    by 0x11C1C3C: main (php_cli.c:1356)
==1178== 

 

Generated at Sat, 13 Dec 2014 06:16:29 +0000 (8 days ago)

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