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

==30991== Conditional jump or move depends on uninitialised value(s)
==30991==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==30991==    by 0xE1D814: lex_scan (zend_language_scanner.l:1815)
==30991==    by 0xE7A297: zendlex (zend_compile.c:6788)
==30991==    by 0xE0E2E8: zendparse (zend_language_parser.c:3446)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Conditional jump or move depends on uninitialised value(s)
==30991==    at 0xE1DBCD: lex_scan (zend_language_scanner.l:1863)
==30991==    by 0xE7A297: zendlex (zend_compile.c:6788)
==30991==    by 0xE0E2E8: zendparse (zend_language_parser.c:3446)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Conditional jump or move depends on uninitialised value(s)
==30991==    at 0xE1DBED: lex_scan (zend_language_scanner.l:1863)
==30991==    by 0xE7A297: zendlex (zend_compile.c:6788)
==30991==    by 0xE0E2E8: zendparse (zend_language_parser.c:3446)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Use of uninitialised value of size 8
==30991==    at 0xEE8A4D: zend_new_interned_string_int (zend_string.c:95)
==30991==    by 0xE518C8: zend_insert_literal (zend_compile.c:339)
==30991==    by 0xE51B04: zend_add_literal (zend_compile.c:362)
==30991==    by 0xE566C6: zend_do_echo (zend_compile.c:869)
==30991==    by 0xE0F3B1: zendparse (zend_language_parser.y:309)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Conditional jump or move depends on uninitialised value(s)
==30991==    at 0xEE8A76: zend_new_interned_string_int (zend_string.c:97)
==30991==    by 0xE518C8: zend_insert_literal (zend_compile.c:339)
==30991==    by 0xE51B04: zend_add_literal (zend_compile.c:362)
==30991==    by 0xE566C6: zend_do_echo (zend_compile.c:869)
==30991==    by 0xE0F3B1: zendparse (zend_language_parser.y:309)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Use of uninitialised value of size 8
==30991==    at 0xEE8C75: zend_new_interned_string_int (zend_string.c:131)
==30991==    by 0xE518C8: zend_insert_literal (zend_compile.c:339)
==30991==    by 0xE51B04: zend_add_literal (zend_compile.c:362)
==30991==    by 0xE566C6: zend_do_echo (zend_compile.c:869)
==30991==    by 0xE0F3B1: zendparse (zend_language_parser.y:309)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Use of uninitialised value of size 8
==30991==    at 0xEE8DB1: zend_new_interned_string_int (zend_string.c:149)
==30991==    by 0xE518C8: zend_insert_literal (zend_compile.c:339)
==30991==    by 0xE51B04: zend_add_literal (zend_compile.c:362)
==30991==    by 0xE566C6: zend_do_echo (zend_compile.c:869)
==30991==    by 0xE0F3B1: zendparse (zend_language_parser.y:309)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Conditional jump or move depends on uninitialised value(s)
==30991==    at 0xE1D6AA: lex_scan (zend_language_scanner.c:1091)
==30991==    by 0xE7A297: zendlex (zend_compile.c:6788)
==30991==    by 0xE0E2E8: zendparse (zend_language_parser.c:3446)
==30991==    by 0xE1B89F: compile_file (zend_language_scanner.l:588)
==30991==    by 0xA841E3: phar_compile_file (phar.c:3382)
==30991==    by 0xEA428D: zend_execute_scripts (zend.c:1319)
==30991==    by 0xDC6C0E: php_execute_script (main.c:2525)
==30991==    by 0x108D6B9: do_cli (php_cli.c:994)
==30991==    by 0x108EE66: main (php_cli.c:1378)
==30991== 
==30991== Syscall param write(buf) points to uninitialised byte(s)
==30991==    at 0xD237520: __write_nocancel (in /lib64/libc-2.12.so)
==30991==    by 0x108AFBE: sapi_cli_single_write (php_cli.c:273)
==30991==    by 0x108B14B: sapi_cli_ub_write (php_cli.c:308)
==30991==    by 0xDEB32F: php_output_op (output.c:1094)
==30991==    by 0xDE8233: php_output_write (output.c:270)
==30991==    by 0xDC4EA9: php_output_wrapper (main.c:1873)
==30991==    by 0xEA0D7A: zend_print_zval_ex (zend.c:331)
==30991==    by 0xEA0C58: zend_print_zval (zend.c:312)
==30991==    by 0xE9F23D: zend_print_variable (zend_variables.c:155)
==30991==    by 0xF1211E: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2145)
==30991==    by 0xF072E8: execute_ex (zend_vm_execute.h:363)
==30991==    by 0xF07E7A: zend_execute (zend_vm_execute.h:388)
==30991==  Address 0x1417cb9c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==30991==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==30991==    by 0xEE87C1: zend_interned_strings_init (zend_string.c:48)
==30991==    by 0xEA1EBB: zend_startup (zend.c:744)
==30991==    by 0xDC539A: php_module_startup (main.c:2060)
==30991==    by 0x108B726: php_cli_startup (php_cli.c:417)
==30991==    by 0x108ED6D: main (php_cli.c:1358)
==30991== 

 

Generated at Sat, 25 Jul 2015 01:11:20 +0000 (7 days ago)

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