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

==24813== Conditional jump or move depends on uninitialised value(s)
==24813==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==24813==    by 0xDCA31C: lex_scan (zend_language_scanner.l:1815)
==24813==    by 0xE26B91: zendlex (zend_compile.c:6767)
==24813==    by 0xDBADDC: zendparse (zend_language_parser.c:3446)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Conditional jump or move depends on uninitialised value(s)
==24813==    at 0xDCA6D5: lex_scan (zend_language_scanner.l:1863)
==24813==    by 0xE26B91: zendlex (zend_compile.c:6767)
==24813==    by 0xDBADDC: zendparse (zend_language_parser.c:3446)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Conditional jump or move depends on uninitialised value(s)
==24813==    at 0xDCA6F5: lex_scan (zend_language_scanner.l:1863)
==24813==    by 0xE26B91: zendlex (zend_compile.c:6767)
==24813==    by 0xDBADDC: zendparse (zend_language_parser.c:3446)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Use of uninitialised value of size 8
==24813==    at 0xE9516D: zend_new_interned_string_int (zend_string.c:95)
==24813==    by 0xDFE34C: zend_insert_literal (zend_compile.c:339)
==24813==    by 0xDFE588: zend_add_literal (zend_compile.c:362)
==24813==    by 0xE0314A: zend_do_echo (zend_compile.c:869)
==24813==    by 0xDBBEB9: zendparse (zend_language_parser.y:309)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Conditional jump or move depends on uninitialised value(s)
==24813==    at 0xE95196: zend_new_interned_string_int (zend_string.c:97)
==24813==    by 0xDFE34C: zend_insert_literal (zend_compile.c:339)
==24813==    by 0xDFE588: zend_add_literal (zend_compile.c:362)
==24813==    by 0xE0314A: zend_do_echo (zend_compile.c:869)
==24813==    by 0xDBBEB9: zendparse (zend_language_parser.y:309)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Use of uninitialised value of size 8
==24813==    at 0xE95395: zend_new_interned_string_int (zend_string.c:131)
==24813==    by 0xDFE34C: zend_insert_literal (zend_compile.c:339)
==24813==    by 0xDFE588: zend_add_literal (zend_compile.c:362)
==24813==    by 0xE0314A: zend_do_echo (zend_compile.c:869)
==24813==    by 0xDBBEB9: zendparse (zend_language_parser.y:309)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Use of uninitialised value of size 8
==24813==    at 0xE954D1: zend_new_interned_string_int (zend_string.c:149)
==24813==    by 0xDFE34C: zend_insert_literal (zend_compile.c:339)
==24813==    by 0xDFE588: zend_add_literal (zend_compile.c:362)
==24813==    by 0xE0314A: zend_do_echo (zend_compile.c:869)
==24813==    by 0xDBBEB9: zendparse (zend_language_parser.y:309)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Conditional jump or move depends on uninitialised value(s)
==24813==    at 0xDCA1B2: lex_scan (zend_language_scanner.c:1091)
==24813==    by 0xE26B91: zendlex (zend_compile.c:6767)
==24813==    by 0xDBADDC: zendparse (zend_language_parser.c:3446)
==24813==    by 0xDC83A7: compile_file (zend_language_scanner.l:588)
==24813==    by 0xA31FE3: phar_compile_file (phar.c:3384)
==24813==    by 0xE509C5: zend_execute_scripts (zend.c:1319)
==24813==    by 0xD73A94: php_execute_script (main.c:2506)
==24813==    by 0x1035175: do_cli (php_cli.c:994)
==24813==    by 0x1036922: main (php_cli.c:1378)
==24813== 
==24813== Syscall param write(buf) points to uninitialised byte(s)
==24813==    at 0xD237520: __write_nocancel (in /lib64/libc-2.12.so)
==24813==    by 0x1032A7A: sapi_cli_single_write (php_cli.c:273)
==24813==    by 0x1032C07: sapi_cli_ub_write (php_cli.c:308)
==24813==    by 0xD97E83: php_output_op (output.c:1094)
==24813==    by 0xD94D87: php_output_write (output.c:270)
==24813==    by 0xD71E1E: php_output_wrapper (main.c:1868)
==24813==    by 0xE4D4B2: zend_print_zval_ex (zend.c:331)
==24813==    by 0xE4D390: zend_print_zval (zend.c:312)
==24813==    by 0xE4B975: zend_print_variable (zend_variables.c:155)
==24813==    by 0xEBE7C3: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2141)
==24813==    by 0xEB39F8: execute_ex (zend_vm_execute.h:363)
==24813==    by 0xEB458A: zend_execute (zend_vm_execute.h:388)
==24813==  Address 0x1417bb9c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==24813==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==24813==    by 0xE94EE1: zend_interned_strings_init (zend_string.c:48)
==24813==    by 0xE4E5F3: zend_startup (zend.c:744)
==24813==    by 0xD7230F: php_module_startup (main.c:2055)
==24813==    by 0x10331E2: php_cli_startup (php_cli.c:417)
==24813==    by 0x1036829: main (php_cli.c:1358)
==24813== 

 

Generated at Wed, 25 Feb 2015 17:32:32 +0000 (2 days ago)

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