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

==24290== Conditional jump or move depends on uninitialised value(s)
==24290==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==24290==    by 0xDE0DDB: lex_scan (zend_language_scanner.l:1757)
==24290==    by 0xE3E2E1: zendlex (zend_compile.c:6881)
==24290==    by 0xDD0CE0: zendparse (zend_language_parser.c:3742)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Conditional jump or move depends on uninitialised value(s)
==24290==    at 0xDE1194: lex_scan (zend_language_scanner.l:1805)
==24290==    by 0xE3E2E1: zendlex (zend_compile.c:6881)
==24290==    by 0xDD0CE0: zendparse (zend_language_parser.c:3742)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Conditional jump or move depends on uninitialised value(s)
==24290==    at 0xDE11B4: lex_scan (zend_language_scanner.l:1805)
==24290==    by 0xE3E2E1: zendlex (zend_compile.c:6881)
==24290==    by 0xDD0CE0: zendparse (zend_language_parser.c:3742)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Use of uninitialised value of size 8
==24290==    at 0xEAF279: zend_new_interned_string_int (zend_string.c:97)
==24290==    by 0xE171BF: zend_insert_literal (zend_compile.c:343)
==24290==    by 0xE173FB: zend_add_literal (zend_compile.c:366)
==24290==    by 0xE1B460: zend_do_echo (zend_compile.c:877)
==24290==    by 0xDD2036: zendparse (zend_language_parser.y:339)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Conditional jump or move depends on uninitialised value(s)
==24290==    at 0xEAF2A2: zend_new_interned_string_int (zend_string.c:99)
==24290==    by 0xE171BF: zend_insert_literal (zend_compile.c:343)
==24290==    by 0xE173FB: zend_add_literal (zend_compile.c:366)
==24290==    by 0xE1B460: zend_do_echo (zend_compile.c:877)
==24290==    by 0xDD2036: zendparse (zend_language_parser.y:339)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Use of uninitialised value of size 8
==24290==    at 0xEAF4A1: zend_new_interned_string_int (zend_string.c:133)
==24290==    by 0xE171BF: zend_insert_literal (zend_compile.c:343)
==24290==    by 0xE173FB: zend_add_literal (zend_compile.c:366)
==24290==    by 0xE1B460: zend_do_echo (zend_compile.c:877)
==24290==    by 0xDD2036: zendparse (zend_language_parser.y:339)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Use of uninitialised value of size 8
==24290==    at 0xEAF5DD: zend_new_interned_string_int (zend_string.c:151)
==24290==    by 0xE171BF: zend_insert_literal (zend_compile.c:343)
==24290==    by 0xE173FB: zend_add_literal (zend_compile.c:366)
==24290==    by 0xE1B460: zend_do_echo (zend_compile.c:877)
==24290==    by 0xDD2036: zendparse (zend_language_parser.y:339)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Conditional jump or move depends on uninitialised value(s)
==24290==    at 0xDE0C71: lex_scan (zend_language_scanner.c:1082)
==24290==    by 0xE3E2E1: zendlex (zend_compile.c:6881)
==24290==    by 0xDD0CE0: zendparse (zend_language_parser.c:3742)
==24290==    by 0xDDEE86: compile_file (zend_language_scanner.l:586)
==24290==    by 0xA3F8BE: phar_compile_file (phar.c:3360)
==24290==    by 0xE6A8DC: zend_execute_scripts (zend.c:1333)
==24290==    by 0xD89065: php_execute_script (main.c:2584)
==24290==    by 0x101D5CE: do_cli (php_cli.c:994)
==24290==    by 0x101ED7B: main (php_cli.c:1378)
==24290== 
==24290== Syscall param write(buf) points to uninitialised byte(s)
==24290==    at 0xD237520: __write_nocancel (in /lib64/libc-2.12.so)
==24290==    by 0x101AEDC: sapi_cli_single_write (php_cli.c:273)
==24290==    by 0x101B069: sapi_cli_ub_write (php_cli.c:308)
==24290==    by 0xDADD46: php_output_op (output.c:1093)
==24290==    by 0xDAAB76: php_output_write (output.c:269)
==24290==    by 0xD873C4: php_output_wrapper (main.c:1947)
==24290==    by 0xE673EF: zend_print_zval_ex (zend.c:332)
==24290==    by 0xE672CD: zend_print_zval (zend.c:313)
==24290==    by 0xE65935: zend_print_variable (zend_variables.c:160)
==24290==    by 0xEE199A: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2402)
==24290==    by 0xED4FE2: execute_ex (zend_vm_execute.h:363)
==24290==    by 0xED5B85: zend_execute (zend_vm_execute.h:388)
==24290==  Address 0x1417ca9c is 339,468 bytes inside a block of size 1,048,576 alloc'd
==24290==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==24290==    by 0xEAEFBD: zend_interned_strings_init (zend_string.c:48)
==24290==    by 0xE68520: zend_startup (zend.c:747)
==24290==    by 0xD878B5: php_module_startup (main.c:2134)
==24290==    by 0x101B63B: php_cli_startup (php_cli.c:417)
==24290==    by 0x101EC82: main (php_cli.c:1358)
==24290== 

 

Generated at Sat, 24 Jan 2015 14:29:14 +0000 (4 days ago)

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