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

==11887== Conditional jump or move depends on uninitialised value(s)
==11887==    at 0x4C2A4A0: memchr (vg_replace_strmem.c:883)
==11887==    by 0xE1FBEC: lex_scan (zend_language_scanner.l:1815)
==11887==    by 0xE7C66F: zendlex (zend_compile.c:6788)
==11887==    by 0xE106C0: zendparse (zend_language_parser.c:3446)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Conditional jump or move depends on uninitialised value(s)
==11887==    at 0xE1FFA5: lex_scan (zend_language_scanner.l:1863)
==11887==    by 0xE7C66F: zendlex (zend_compile.c:6788)
==11887==    by 0xE106C0: zendparse (zend_language_parser.c:3446)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Conditional jump or move depends on uninitialised value(s)
==11887==    at 0xE1FFC5: lex_scan (zend_language_scanner.l:1863)
==11887==    by 0xE7C66F: zendlex (zend_compile.c:6788)
==11887==    by 0xE106C0: zendparse (zend_language_parser.c:3446)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Use of uninitialised value of size 8
==11887==    at 0xEEBA3D: zend_new_interned_string_int (zend_string.c:95)
==11887==    by 0xE53CA0: zend_insert_literal (zend_compile.c:339)
==11887==    by 0xE53EDC: zend_add_literal (zend_compile.c:362)
==11887==    by 0xE58A9E: zend_do_echo (zend_compile.c:869)
==11887==    by 0xE11789: zendparse (zend_language_parser.y:309)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Conditional jump or move depends on uninitialised value(s)
==11887==    at 0xEEBA66: zend_new_interned_string_int (zend_string.c:97)
==11887==    by 0xE53CA0: zend_insert_literal (zend_compile.c:339)
==11887==    by 0xE53EDC: zend_add_literal (zend_compile.c:362)
==11887==    by 0xE58A9E: zend_do_echo (zend_compile.c:869)
==11887==    by 0xE11789: zendparse (zend_language_parser.y:309)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Use of uninitialised value of size 8
==11887==    at 0xEEBC65: zend_new_interned_string_int (zend_string.c:131)
==11887==    by 0xE53CA0: zend_insert_literal (zend_compile.c:339)
==11887==    by 0xE53EDC: zend_add_literal (zend_compile.c:362)
==11887==    by 0xE58A9E: zend_do_echo (zend_compile.c:869)
==11887==    by 0xE11789: zendparse (zend_language_parser.y:309)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Use of uninitialised value of size 8
==11887==    at 0xEEBDA1: zend_new_interned_string_int (zend_string.c:149)
==11887==    by 0xE53CA0: zend_insert_literal (zend_compile.c:339)
==11887==    by 0xE53EDC: zend_add_literal (zend_compile.c:362)
==11887==    by 0xE58A9E: zend_do_echo (zend_compile.c:869)
==11887==    by 0xE11789: zendparse (zend_language_parser.y:309)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Conditional jump or move depends on uninitialised value(s)
==11887==    at 0xE1FA82: lex_scan (zend_language_scanner.c:1091)
==11887==    by 0xE7C66F: zendlex (zend_compile.c:6788)
==11887==    by 0xE106C0: zendparse (zend_language_parser.c:3446)
==11887==    by 0xE1DC77: compile_file (zend_language_scanner.l:588)
==11887==    by 0xA855C8: phar_compile_file (phar.c:3392)
==11887==    by 0xEA6665: zend_execute_scripts (zend.c:1319)
==11887==    by 0xDC8F9A: php_execute_script (main.c:2525)
==11887==    by 0x10906A9: do_cli (php_cli.c:994)
==11887==    by 0x1091E56: main (php_cli.c:1378)
==11887== 
==11887== Syscall param write(buf) points to uninitialised byte(s)
==11887==    at 0xD237560: __write_nocancel (in /lib64/libc-2.12.so)
==11887==    by 0x108DFAE: sapi_cli_single_write (php_cli.c:273)
==11887==    by 0x108E13B: sapi_cli_ub_write (php_cli.c:308)
==11887==    by 0xDED6BB: php_output_op (output.c:1094)
==11887==    by 0xDEA5BF: php_output_write (output.c:270)
==11887==    by 0xDC7235: php_output_wrapper (main.c:1873)
==11887==    by 0xEA3152: zend_print_zval_ex (zend.c:331)
==11887==    by 0xEA3030: zend_print_zval (zend.c:312)
==11887==    by 0xEA1615: zend_print_variable (zend_variables.c:155)
==11887==    by 0xF1510E: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2145)
==11887==    by 0xF0A2D8: execute_ex (zend_vm_execute.h:363)
==11887==    by 0xF0AE6A: zend_execute (zend_vm_execute.h:388)
==11887==  Address 0x14187b9c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==11887==    at 0x4C282CA: malloc (vg_replace_malloc.c:299)
==11887==    by 0xEEB7B1: zend_interned_strings_init (zend_string.c:48)
==11887==    by 0xEA4293: zend_startup (zend.c:744)
==11887==    by 0xDC7726: php_module_startup (main.c:2060)
==11887==    by 0x108E716: php_cli_startup (php_cli.c:417)
==11887==    by 0x1091D5D: main (php_cli.c:1358)
==11887== 

 

Generated at Tue, 24 May 2016 06:49:08 +0000 (3 days ago)

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