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

==3806== Conditional jump or move depends on uninitialised value(s)
==3806==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==3806==    by 0xDC0A4C: lex_scan (zend_language_scanner.l:1815)
==3806==    by 0xE1D139: zendlex (zend_compile.c:6761)
==3806==    by 0xDB150C: zendparse (zend_language_parser.c:3446)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Conditional jump or move depends on uninitialised value(s)
==3806==    at 0xDC0E05: lex_scan (zend_language_scanner.l:1863)
==3806==    by 0xE1D139: zendlex (zend_compile.c:6761)
==3806==    by 0xDB150C: zendparse (zend_language_parser.c:3446)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Conditional jump or move depends on uninitialised value(s)
==3806==    at 0xDC0E25: lex_scan (zend_language_scanner.l:1863)
==3806==    by 0xE1D139: zendlex (zend_compile.c:6761)
==3806==    by 0xDB150C: zendparse (zend_language_parser.c:3446)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Use of uninitialised value of size 8
==3806==    at 0xE8B695: zend_new_interned_string_int (zend_string.c:95)
==3806==    by 0xDF4A7C: zend_insert_literal (zend_compile.c:339)
==3806==    by 0xDF4CB8: zend_add_literal (zend_compile.c:362)
==3806==    by 0xDF987A: zend_do_echo (zend_compile.c:869)
==3806==    by 0xDB25E9: zendparse (zend_language_parser.y:309)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Conditional jump or move depends on uninitialised value(s)
==3806==    at 0xE8B6BE: zend_new_interned_string_int (zend_string.c:97)
==3806==    by 0xDF4A7C: zend_insert_literal (zend_compile.c:339)
==3806==    by 0xDF4CB8: zend_add_literal (zend_compile.c:362)
==3806==    by 0xDF987A: zend_do_echo (zend_compile.c:869)
==3806==    by 0xDB25E9: zendparse (zend_language_parser.y:309)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Use of uninitialised value of size 8
==3806==    at 0xE8B8BD: zend_new_interned_string_int (zend_string.c:131)
==3806==    by 0xDF4A7C: zend_insert_literal (zend_compile.c:339)
==3806==    by 0xDF4CB8: zend_add_literal (zend_compile.c:362)
==3806==    by 0xDF987A: zend_do_echo (zend_compile.c:869)
==3806==    by 0xDB25E9: zendparse (zend_language_parser.y:309)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Use of uninitialised value of size 8
==3806==    at 0xE8B9F9: zend_new_interned_string_int (zend_string.c:149)
==3806==    by 0xDF4A7C: zend_insert_literal (zend_compile.c:339)
==3806==    by 0xDF4CB8: zend_add_literal (zend_compile.c:362)
==3806==    by 0xDF987A: zend_do_echo (zend_compile.c:869)
==3806==    by 0xDB25E9: zendparse (zend_language_parser.y:309)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Conditional jump or move depends on uninitialised value(s)
==3806==    at 0xDC08E2: lex_scan (zend_language_scanner.c:1091)
==3806==    by 0xE1D139: zendlex (zend_compile.c:6761)
==3806==    by 0xDB150C: zendparse (zend_language_parser.c:3446)
==3806==    by 0xDBEAD7: compile_file (zend_language_scanner.l:588)
==3806==    by 0xA28DA7: phar_compile_file (phar.c:3384)
==3806==    by 0xE46F6D: zend_execute_scripts (zend.c:1322)
==3806==    by 0xD6A0EC: php_execute_script (main.c:2506)
==3806==    by 0x102B69D: do_cli (php_cli.c:994)
==3806==    by 0x102CE4A: main (php_cli.c:1378)
==3806== 
==3806== Syscall param write(buf) points to uninitialised byte(s)
==3806==    at 0xD235600: __write_nocancel (in /lib64/libc-2.12.so)
==3806==    by 0x1028FA2: sapi_cli_single_write (php_cli.c:273)
==3806==    by 0x102912F: sapi_cli_ub_write (php_cli.c:308)
==3806==    by 0xD8E532: php_output_op (output.c:1093)
==3806==    by 0xD8B436: php_output_write (output.c:269)
==3806==    by 0xD68476: php_output_wrapper (main.c:1868)
==3806==    by 0xE43A5A: zend_print_zval_ex (zend.c:331)
==3806==    by 0xE43938: zend_print_zval (zend.c:312)
==3806==    by 0xE41F1D: zend_print_variable (zend_variables.c:155)
==3806==    by 0xEB4CEB: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2141)
==3806==    by 0xEA9F20: execute_ex (zend_vm_execute.h:363)
==3806==    by 0xEAAAB2: zend_execute (zend_vm_execute.h:388)
==3806==  Address 0x1463dc8c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==3806==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==3806==    by 0xE8B409: zend_interned_strings_init (zend_string.c:48)
==3806==    by 0xE44B9B: zend_startup (zend.c:744)
==3806==    by 0xD68967: php_module_startup (main.c:2055)
==3806==    by 0x102970A: php_cli_startup (php_cli.c:417)
==3806==    by 0x102CD51: main (php_cli.c:1358)
==3806== 

 

Generated at Mon, 17 Nov 2014 20:38:41 +0000 (6 days ago)

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