PHP  
 PHP_5_4
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

==11034== Conditional jump or move depends on uninitialised value(s)
==11034==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==11034==    by 0xD0C2FC: lex_scan (zend_language_scanner.l:1803)
==11034==    by 0xD5F769: zendlex (zend_compile.c:6545)
==11034==    by 0xCFDEE3: zendparse (zend_language_parser.c:3451)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Conditional jump or move depends on uninitialised value(s)
==11034==    at 0xD0C634: lex_scan (zend_language_scanner.l:1851)
==11034==    by 0xD5F769: zendlex (zend_compile.c:6545)
==11034==    by 0xCFDEE3: zendparse (zend_language_parser.c:3451)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Conditional jump or move depends on uninitialised value(s)
==11034==    at 0xD0C654: lex_scan (zend_language_scanner.l:1851)
==11034==    by 0xD5F769: zendlex (zend_compile.c:6545)
==11034==    by 0xCFDEE3: zendparse (zend_language_parser.c:3451)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Use of uninitialised value of size 8
==11034==    at 0xDC81FB: zend_new_interned_string_int (zend_string.c:95)
==11034==    by 0xD3ABE3: zend_insert_literal (zend_compile.c:336)
==11034==    by 0xD3ADFC: zend_add_literal (zend_compile.c:359)
==11034==    by 0xD3F350: zend_do_echo (zend_compile.c:866)
==11034==    by 0xCFEF25: zendparse (zend_language_parser.y:305)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Conditional jump or move depends on uninitialised value(s)
==11034==    at 0xDC8224: zend_new_interned_string_int (zend_string.c:97)
==11034==    by 0xD3ABE3: zend_insert_literal (zend_compile.c:336)
==11034==    by 0xD3ADFC: zend_add_literal (zend_compile.c:359)
==11034==    by 0xD3F350: zend_do_echo (zend_compile.c:866)
==11034==    by 0xCFEF25: zendparse (zend_language_parser.y:305)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Use of uninitialised value of size 8
==11034==    at 0xDC83F8: zend_new_interned_string_int (zend_string.c:131)
==11034==    by 0xD3ABE3: zend_insert_literal (zend_compile.c:336)
==11034==    by 0xD3ADFC: zend_add_literal (zend_compile.c:359)
==11034==    by 0xD3F350: zend_do_echo (zend_compile.c:866)
==11034==    by 0xCFEF25: zendparse (zend_language_parser.y:305)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Use of uninitialised value of size 8
==11034==    at 0xDC850B: zend_new_interned_string_int (zend_string.c:149)
==11034==    by 0xD3ABE3: zend_insert_literal (zend_compile.c:336)
==11034==    by 0xD3ADFC: zend_add_literal (zend_compile.c:359)
==11034==    by 0xD3F350: zend_do_echo (zend_compile.c:866)
==11034==    by 0xCFEF25: zendparse (zend_language_parser.y:305)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Conditional jump or move depends on uninitialised value(s)
==11034==    at 0xD0C1C2: lex_scan (zend_language_scanner.c:1088)
==11034==    by 0xD5F769: zendlex (zend_compile.c:6545)
==11034==    by 0xCFDEE3: zendparse (zend_language_parser.c:3451)
==11034==    by 0xD0A624: compile_file (zend_language_scanner.l:585)
==11034==    by 0x999157: phar_compile_file (phar.c:3411)
==11034==    by 0xD85E12: zend_execute_scripts (zend.c:1321)
==11034==    by 0xCB80E9: php_execute_script (main.c:2502)
==11034==    by 0xF5404C: do_cli (php_cli.c:989)
==11034==    by 0xF55689: main (php_cli.c:1365)
==11034== 
==11034== Syscall param write(buf) points to uninitialised byte(s)
==11034==    at 0xD02B520: __write_nocancel (in /lib64/libc-2.12.so)
==11034==    by 0xF51AA8: sapi_cli_single_write (php_cli.c:270)
==11034==    by 0xF51C35: sapi_cli_ub_write (php_cli.c:305)
==11034==    by 0xCDB1A0: php_output_op (output.c:1093)
==11034==    by 0xCD813F: php_output_write (output.c:269)
==11034==    by 0xCB6680: php_output_wrapper (main.c:1868)
==11034==    by 0xD82E2B: zend_print_zval_ex (zend.c:330)
==11034==    by 0xD82D09: zend_print_zval (zend.c:311)
==11034==    by 0xD8137A: zend_print_variable (zend_variables.c:155)
==11034==    by 0xDEC831: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2045)
==11034==    by 0xDE1F5B: execute (zend_vm_execute.h:410)
==11034==    by 0xD85F08: zend_execute_scripts (zend.c:1329)
==11034==  Address 0x13f66844 is 314,676 bytes inside a block of size 1,048,576 alloc'd
==11034==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==11034==    by 0xDC8018: zend_interned_strings_init (zend_string.c:48)
==11034==    by 0xD83DD8: zend_startup (zend.c:743)
==11034==    by 0xCB6AA7: php_module_startup (main.c:2038)
==11034==    by 0xF521AB: php_cli_startup (php_cli.c:414)
==11034==    by 0xF555B8: main (php_cli.c:1345)
==11034== 

 

Generated at Sun, 22 Mar 2015 22:20:06 +0000 (5 days ago)

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