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

==4788== Conditional jump or move depends on uninitialised value(s)
==4788==    at 0x4C2A4A0: memchr (vg_replace_strmem.c:883)
==4788==    by 0xE1F798: lex_scan (zend_language_scanner.l:1815)
==4788==    by 0xE7C21B: zendlex (zend_compile.c:6788)
==4788==    by 0xE1026C: zendparse (zend_language_parser.c:3446)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Conditional jump or move depends on uninitialised value(s)
==4788==    at 0xE1FB51: lex_scan (zend_language_scanner.l:1863)
==4788==    by 0xE7C21B: zendlex (zend_compile.c:6788)
==4788==    by 0xE1026C: zendparse (zend_language_parser.c:3446)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Conditional jump or move depends on uninitialised value(s)
==4788==    at 0xE1FB71: lex_scan (zend_language_scanner.l:1863)
==4788==    by 0xE7C21B: zendlex (zend_compile.c:6788)
==4788==    by 0xE1026C: zendparse (zend_language_parser.c:3446)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Use of uninitialised value of size 8
==4788==    at 0xEEB5E9: zend_new_interned_string_int (zend_string.c:95)
==4788==    by 0xE5384C: zend_insert_literal (zend_compile.c:339)
==4788==    by 0xE53A88: zend_add_literal (zend_compile.c:362)
==4788==    by 0xE5864A: zend_do_echo (zend_compile.c:869)
==4788==    by 0xE11335: zendparse (zend_language_parser.y:309)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Conditional jump or move depends on uninitialised value(s)
==4788==    at 0xEEB612: zend_new_interned_string_int (zend_string.c:97)
==4788==    by 0xE5384C: zend_insert_literal (zend_compile.c:339)
==4788==    by 0xE53A88: zend_add_literal (zend_compile.c:362)
==4788==    by 0xE5864A: zend_do_echo (zend_compile.c:869)
==4788==    by 0xE11335: zendparse (zend_language_parser.y:309)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Use of uninitialised value of size 8
==4788==    at 0xEEB811: zend_new_interned_string_int (zend_string.c:131)
==4788==    by 0xE5384C: zend_insert_literal (zend_compile.c:339)
==4788==    by 0xE53A88: zend_add_literal (zend_compile.c:362)
==4788==    by 0xE5864A: zend_do_echo (zend_compile.c:869)
==4788==    by 0xE11335: zendparse (zend_language_parser.y:309)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Use of uninitialised value of size 8
==4788==    at 0xEEB94D: zend_new_interned_string_int (zend_string.c:149)
==4788==    by 0xE5384C: zend_insert_literal (zend_compile.c:339)
==4788==    by 0xE53A88: zend_add_literal (zend_compile.c:362)
==4788==    by 0xE5864A: zend_do_echo (zend_compile.c:869)
==4788==    by 0xE11335: zendparse (zend_language_parser.y:309)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Conditional jump or move depends on uninitialised value(s)
==4788==    at 0xE1F62E: lex_scan (zend_language_scanner.c:1091)
==4788==    by 0xE7C21B: zendlex (zend_compile.c:6788)
==4788==    by 0xE1026C: zendparse (zend_language_parser.c:3446)
==4788==    by 0xE1D823: compile_file (zend_language_scanner.l:588)
==4788==    by 0xA85198: phar_compile_file (phar.c:3392)
==4788==    by 0xEA6211: zend_execute_scripts (zend.c:1319)
==4788==    by 0xDC8B46: php_execute_script (main.c:2525)
==4788==    by 0x1090255: do_cli (php_cli.c:994)
==4788==    by 0x1091A02: main (php_cli.c:1378)
==4788== 
==4788== Syscall param write(buf) points to uninitialised byte(s)
==4788==    at 0xD237560: __write_nocancel (in /lib64/libc-2.12.so)
==4788==    by 0x108DB5A: sapi_cli_single_write (php_cli.c:273)
==4788==    by 0x108DCE7: sapi_cli_ub_write (php_cli.c:308)
==4788==    by 0xDED267: php_output_op (output.c:1094)
==4788==    by 0xDEA16B: php_output_write (output.c:270)
==4788==    by 0xDC6DE1: php_output_wrapper (main.c:1873)
==4788==    by 0xEA2CFE: zend_print_zval_ex (zend.c:331)
==4788==    by 0xEA2BDC: zend_print_zval (zend.c:312)
==4788==    by 0xEA11C1: zend_print_variable (zend_variables.c:155)
==4788==    by 0xF14CBA: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2145)
==4788==    by 0xF09E84: execute_ex (zend_vm_execute.h:363)
==4788==    by 0xF0AA16: zend_execute (zend_vm_execute.h:388)
==4788==  Address 0x14187b9c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==4788==    at 0x4C282CA: malloc (vg_replace_malloc.c:299)
==4788==    by 0xEEB35D: zend_interned_strings_init (zend_string.c:48)
==4788==    by 0xEA3E3F: zend_startup (zend.c:744)
==4788==    by 0xDC72D2: php_module_startup (main.c:2060)
==4788==    by 0x108E2C2: php_cli_startup (php_cli.c:417)
==4788==    by 0x1091909: main (php_cli.c:1358)
==4788== 

 

Generated at Mon, 25 Apr 2016 08:54:27 +0000 (8 days ago)

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