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/mbstring/tests/zend_multibyte-09.phpt ('zend multibyte (9)')

Script

1: <?php
2:
declare(encoding="EUC-JP");
3:
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
4: // back to UTF-8. There should be only a pair of consecutive bytes that is
5: // valid EUC-encoded character "鴻".
6:
var_dump(bin2hex("テスト"));
7:
?>
8:

Report

==13946== Conditional jump or move depends on uninitialised value(s)
==13946==    at 0x4C2A4A0: memchr (vg_replace_strmem.c:883)
==13946==    by 0xE38773: lex_scan (zend_language_scanner.l:1757)
==13946==    by 0xE96198: zendlex (zend_compile.c:6911)
==13946==    by 0xE286B4: zendparse (zend_language_parser.c:3742)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Conditional jump or move depends on uninitialised value(s)
==13946==    at 0xE38B2C: lex_scan (zend_language_scanner.l:1805)
==13946==    by 0xE96198: zendlex (zend_compile.c:6911)
==13946==    by 0xE286B4: zendparse (zend_language_parser.c:3742)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Conditional jump or move depends on uninitialised value(s)
==13946==    at 0xE38B4C: lex_scan (zend_language_scanner.l:1805)
==13946==    by 0xE96198: zendlex (zend_compile.c:6911)
==13946==    by 0xE286B4: zendparse (zend_language_parser.c:3742)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Use of uninitialised value of size 8
==13946==    at 0xF08195: zend_new_interned_string_int (zend_string.c:97)
==13946==    by 0xE6EEA7: zend_insert_literal (zend_compile.c:343)
==13946==    by 0xE6F0E3: zend_add_literal (zend_compile.c:366)
==13946==    by 0xE73148: zend_do_echo (zend_compile.c:877)
==13946==    by 0xE299CE: zendparse (zend_language_parser.y:339)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Conditional jump or move depends on uninitialised value(s)
==13946==    at 0xF081BE: zend_new_interned_string_int (zend_string.c:99)
==13946==    by 0xE6EEA7: zend_insert_literal (zend_compile.c:343)
==13946==    by 0xE6F0E3: zend_add_literal (zend_compile.c:366)
==13946==    by 0xE73148: zend_do_echo (zend_compile.c:877)
==13946==    by 0xE299CE: zendparse (zend_language_parser.y:339)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Use of uninitialised value of size 8
==13946==    at 0xF083BD: zend_new_interned_string_int (zend_string.c:133)
==13946==    by 0xE6EEA7: zend_insert_literal (zend_compile.c:343)
==13946==    by 0xE6F0E3: zend_add_literal (zend_compile.c:366)
==13946==    by 0xE73148: zend_do_echo (zend_compile.c:877)
==13946==    by 0xE299CE: zendparse (zend_language_parser.y:339)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Use of uninitialised value of size 8
==13946==    at 0xF084F9: zend_new_interned_string_int (zend_string.c:151)
==13946==    by 0xE6EEA7: zend_insert_literal (zend_compile.c:343)
==13946==    by 0xE6F0E3: zend_add_literal (zend_compile.c:366)
==13946==    by 0xE73148: zend_do_echo (zend_compile.c:877)
==13946==    by 0xE299CE: zendparse (zend_language_parser.y:339)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Conditional jump or move depends on uninitialised value(s)
==13946==    at 0xE38609: lex_scan (zend_language_scanner.c:1082)
==13946==    by 0xE96198: zendlex (zend_compile.c:6911)
==13946==    by 0xE286B4: zendparse (zend_language_parser.c:3742)
==13946==    by 0xE3681E: compile_file (zend_language_scanner.l:586)
==13946==    by 0xA940A1: phar_compile_file (phar.c:3367)
==13946==    by 0xEC291C: zend_execute_scripts (zend.c:1333)
==13946==    by 0xDE05C1: php_execute_script (main.c:2613)
==13946==    by 0x107B1BA: do_cli (php_cli.c:994)
==13946==    by 0x107C967: main (php_cli.c:1378)
==13946== 
==13946== Syscall param write(buf) points to uninitialised byte(s)
==13946==    at 0xD237560: __write_nocancel (in /lib64/libc-2.12.so)
==13946==    by 0x1078AC8: sapi_cli_single_write (php_cli.c:273)
==13946==    by 0x1078C55: sapi_cli_ub_write (php_cli.c:308)
==13946==    by 0xE055DA: php_output_op (output.c:1094)
==13946==    by 0xE0240A: php_output_write (output.c:270)
==13946==    by 0xDDE831: php_output_wrapper (main.c:1962)
==13946==    by 0xEBF42F: zend_print_zval_ex (zend.c:332)
==13946==    by 0xEBF30D: zend_print_zval (zend.c:313)
==13946==    by 0xEBD975: zend_print_variable (zend_variables.c:160)
==13946==    by 0xF3A987: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2409)
==13946==    by 0xF2DF3A: execute_ex (zend_vm_execute.h:363)
==13946==    by 0xF2EADD: zend_execute (zend_vm_execute.h:388)
==13946==  Address 0x14188b5c is 339,660 bytes inside a block of size 1,048,576 alloc'd
==13946==    at 0x4C282CA: malloc (vg_replace_malloc.c:299)
==13946==    by 0xF07ED9: zend_interned_strings_init (zend_string.c:48)
==13946==    by 0xEC0560: zend_startup (zend.c:747)
==13946==    by 0xDDED22: php_module_startup (main.c:2149)
==13946==    by 0x1079227: php_cli_startup (php_cli.c:417)
==13946==    by 0x107C86E: main (php_cli.c:1358)
==13946== 

 

Generated at Fri, 20 May 2016 04:55:13 +0000 (10 days ago)

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