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

==14167== Conditional jump or move depends on uninitialised value(s)
==14167==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==14167==    by 0xD91F60: lex_scan (zend_language_scanner.l:1803)
==14167==    by 0xDE542D: zendlex (zend_compile.c:6545)
==14167==    by 0xD83B47: zendparse (zend_language_parser.c:3451)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Conditional jump or move depends on uninitialised value(s)
==14167==    at 0xD92298: lex_scan (zend_language_scanner.l:1851)
==14167==    by 0xDE542D: zendlex (zend_compile.c:6545)
==14167==    by 0xD83B47: zendparse (zend_language_parser.c:3451)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Conditional jump or move depends on uninitialised value(s)
==14167==    at 0xD922B8: lex_scan (zend_language_scanner.l:1851)
==14167==    by 0xDE542D: zendlex (zend_compile.c:6545)
==14167==    by 0xD83B47: zendparse (zend_language_parser.c:3451)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Use of uninitialised value of size 8
==14167==    at 0xE4EBBF: zend_new_interned_string_int (zend_string.c:95)
==14167==    by 0xDC08A7: zend_insert_literal (zend_compile.c:336)
==14167==    by 0xDC0AC0: zend_add_literal (zend_compile.c:359)
==14167==    by 0xDC5014: zend_do_echo (zend_compile.c:866)
==14167==    by 0xD84B89: zendparse (zend_language_parser.y:305)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Conditional jump or move depends on uninitialised value(s)
==14167==    at 0xE4EBE8: zend_new_interned_string_int (zend_string.c:97)
==14167==    by 0xDC08A7: zend_insert_literal (zend_compile.c:336)
==14167==    by 0xDC0AC0: zend_add_literal (zend_compile.c:359)
==14167==    by 0xDC5014: zend_do_echo (zend_compile.c:866)
==14167==    by 0xD84B89: zendparse (zend_language_parser.y:305)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Use of uninitialised value of size 8
==14167==    at 0xE4EDBC: zend_new_interned_string_int (zend_string.c:131)
==14167==    by 0xDC08A7: zend_insert_literal (zend_compile.c:336)
==14167==    by 0xDC0AC0: zend_add_literal (zend_compile.c:359)
==14167==    by 0xDC5014: zend_do_echo (zend_compile.c:866)
==14167==    by 0xD84B89: zendparse (zend_language_parser.y:305)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Use of uninitialised value of size 8
==14167==    at 0xE4EECF: zend_new_interned_string_int (zend_string.c:149)
==14167==    by 0xDC08A7: zend_insert_literal (zend_compile.c:336)
==14167==    by 0xDC0AC0: zend_add_literal (zend_compile.c:359)
==14167==    by 0xDC5014: zend_do_echo (zend_compile.c:866)
==14167==    by 0xD84B89: zendparse (zend_language_parser.y:305)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Conditional jump or move depends on uninitialised value(s)
==14167==    at 0xD91E26: lex_scan (zend_language_scanner.c:1088)
==14167==    by 0xDE542D: zendlex (zend_compile.c:6545)
==14167==    by 0xD83B47: zendparse (zend_language_parser.c:3451)
==14167==    by 0xD90288: compile_file (zend_language_scanner.l:585)
==14167==    by 0xA1DF7D: phar_compile_file (phar.c:3414)
==14167==    by 0xE0BB76: zend_execute_scripts (zend.c:1321)
==14167==    by 0xD3DA41: php_execute_script (main.c:2502)
==14167==    by 0xFDAA10: do_cli (php_cli.c:989)
==14167==    by 0xFDC04D: main (php_cli.c:1365)
==14167== 
==14167== Syscall param write(buf) points to uninitialised byte(s)
==14167==    at 0xD02C5D0: __write_nocancel (in /lib64/libc-2.12.so)
==14167==    by 0xFD846C: sapi_cli_single_write (php_cli.c:270)
==14167==    by 0xFD85F9: sapi_cli_ub_write (php_cli.c:305)
==14167==    by 0xD60E04: php_output_op (output.c:1093)
==14167==    by 0xD5DDA3: php_output_write (output.c:269)
==14167==    by 0xD3BFD8: php_output_wrapper (main.c:1868)
==14167==    by 0xE08B8F: zend_print_zval_ex (zend.c:330)
==14167==    by 0xE08A6D: zend_print_zval (zend.c:311)
==14167==    by 0xE070DE: zend_print_variable (zend_variables.c:155)
==14167==    by 0xE731F5: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2045)
==14167==    by 0xE6891F: execute (zend_vm_execute.h:410)
==14167==    by 0xE0BC6C: zend_execute_scripts (zend.c:1329)
==14167==  Address 0x13f6f844 is 314,676 bytes inside a block of size 1,048,576 alloc'd
==14167==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==14167==    by 0xE4E9DC: zend_interned_strings_init (zend_string.c:48)
==14167==    by 0xE09B3C: zend_startup (zend.c:743)
==14167==    by 0xD3C3FF: php_module_startup (main.c:2038)
==14167==    by 0xFD8B6F: php_cli_startup (php_cli.c:414)
==14167==    by 0xFDBF7C: main (php_cli.c:1345)
==14167== 

 

Generated at Thu, 27 Aug 2015 06:06:26 +0000 (6 days ago)

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