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

==3482== Conditional jump or move depends on uninitialised value(s)
==3482==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==3482==    by 0xD0B96C: lex_scan (zend_language_scanner.l:1803)
==3482==    by 0xD5EDD9: zendlex (zend_compile.c:6545)
==3482==    by 0xCFD553: zendparse (zend_language_parser.c:3451)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Conditional jump or move depends on uninitialised value(s)
==3482==    at 0xD0BCA4: lex_scan (zend_language_scanner.l:1851)
==3482==    by 0xD5EDD9: zendlex (zend_compile.c:6545)
==3482==    by 0xCFD553: zendparse (zend_language_parser.c:3451)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Conditional jump or move depends on uninitialised value(s)
==3482==    at 0xD0BCC4: lex_scan (zend_language_scanner.l:1851)
==3482==    by 0xD5EDD9: zendlex (zend_compile.c:6545)
==3482==    by 0xCFD553: zendparse (zend_language_parser.c:3451)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Use of uninitialised value of size 8
==3482==    at 0xDC777F: zend_new_interned_string_int (zend_string.c:95)
==3482==    by 0xD3A253: zend_insert_literal (zend_compile.c:336)
==3482==    by 0xD3A46C: zend_add_literal (zend_compile.c:359)
==3482==    by 0xD3E9C0: zend_do_echo (zend_compile.c:866)
==3482==    by 0xCFE595: zendparse (zend_language_parser.y:305)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Conditional jump or move depends on uninitialised value(s)
==3482==    at 0xDC77A8: zend_new_interned_string_int (zend_string.c:97)
==3482==    by 0xD3A253: zend_insert_literal (zend_compile.c:336)
==3482==    by 0xD3A46C: zend_add_literal (zend_compile.c:359)
==3482==    by 0xD3E9C0: zend_do_echo (zend_compile.c:866)
==3482==    by 0xCFE595: zendparse (zend_language_parser.y:305)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Use of uninitialised value of size 8
==3482==    at 0xDC797C: zend_new_interned_string_int (zend_string.c:131)
==3482==    by 0xD3A253: zend_insert_literal (zend_compile.c:336)
==3482==    by 0xD3A46C: zend_add_literal (zend_compile.c:359)
==3482==    by 0xD3E9C0: zend_do_echo (zend_compile.c:866)
==3482==    by 0xCFE595: zendparse (zend_language_parser.y:305)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Use of uninitialised value of size 8
==3482==    at 0xDC7A8F: zend_new_interned_string_int (zend_string.c:149)
==3482==    by 0xD3A253: zend_insert_literal (zend_compile.c:336)
==3482==    by 0xD3A46C: zend_add_literal (zend_compile.c:359)
==3482==    by 0xD3E9C0: zend_do_echo (zend_compile.c:866)
==3482==    by 0xCFE595: zendparse (zend_language_parser.y:305)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Conditional jump or move depends on uninitialised value(s)
==3482==    at 0xD0B832: lex_scan (zend_language_scanner.c:1088)
==3482==    by 0xD5EDD9: zendlex (zend_compile.c:6545)
==3482==    by 0xCFD553: zendparse (zend_language_parser.c:3451)
==3482==    by 0xD09C94: compile_file (zend_language_scanner.l:585)
==3482==    by 0x9992AF: phar_compile_file (phar.c:3411)
==3482==    by 0xD85396: zend_execute_scripts (zend.c:1307)
==3482==    by 0xCB76D9: php_execute_script (main.c:2502)
==3482==    by 0xF535D0: do_cli (php_cli.c:989)
==3482==    by 0xF54C0D: main (php_cli.c:1365)
==3482== 
==3482== Syscall param write(buf) points to uninitialised byte(s)
==3482==    at 0xD023780: __write_nocancel (in /lib64/libc-2.12.so)
==3482==    by 0xF5102C: sapi_cli_single_write (php_cli.c:270)
==3482==    by 0xF511B9: sapi_cli_ub_write (php_cli.c:305)
==3482==    by 0xCDA810: php_output_op (output.c:1093)
==3482==    by 0xCD77AF: php_output_write (output.c:269)
==3482==    by 0xCB5C70: php_output_wrapper (main.c:1868)
==3482==    by 0xD8248B: zend_print_zval_ex (zend.c:330)
==3482==    by 0xD82369: zend_print_zval (zend.c:311)
==3482==    by 0xD809DA: zend_print_variable (zend_variables.c:154)
==3482==    by 0xDEBDB5: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2045)
==3482==    by 0xDE14DF: execute (zend_vm_execute.h:410)
==3482==    by 0xD8548C: zend_execute_scripts (zend.c:1315)
==3482==  Address 0x13fb5574 is 314,676 bytes inside a block of size 1,048,576 alloc'd
==3482==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==3482==    by 0xDC759C: zend_interned_strings_init (zend_string.c:48)
==3482==    by 0xD83438: zend_startup (zend.c:743)
==3482==    by 0xCB6097: php_module_startup (main.c:2038)
==3482==    by 0xF5172F: php_cli_startup (php_cli.c:414)
==3482==    by 0xF54B3C: main (php_cli.c:1345)
==3482== 

 

Generated at Sat, 23 Aug 2014 22:39:52 +0000 (6 days ago)

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