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

==12475== Conditional jump or move depends on uninitialised value(s)
==12475==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==12475==    by 0xE35AFF: lex_scan (zend_language_scanner.l:1757)
==12475==    by 0xE93294: zendlex (zend_compile.c:6909)
==12475==    by 0xE25A40: zendparse (zend_language_parser.c:3742)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Conditional jump or move depends on uninitialised value(s)
==12475==    at 0xE35EB8: lex_scan (zend_language_scanner.l:1805)
==12475==    by 0xE93294: zendlex (zend_compile.c:6909)
==12475==    by 0xE25A40: zendparse (zend_language_parser.c:3742)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Conditional jump or move depends on uninitialised value(s)
==12475==    at 0xE35ED8: lex_scan (zend_language_scanner.l:1805)
==12475==    by 0xE93294: zendlex (zend_compile.c:6909)
==12475==    by 0xE25A40: zendparse (zend_language_parser.c:3742)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Use of uninitialised value of size 8
==12475==    at 0xF04449: zend_new_interned_string_int (zend_string.c:97)
==12475==    by 0xE6BF67: zend_insert_literal (zend_compile.c:343)
==12475==    by 0xE6C1A3: zend_add_literal (zend_compile.c:366)
==12475==    by 0xE70208: zend_do_echo (zend_compile.c:877)
==12475==    by 0xE26D5A: zendparse (zend_language_parser.y:339)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Conditional jump or move depends on uninitialised value(s)
==12475==    at 0xF04472: zend_new_interned_string_int (zend_string.c:99)
==12475==    by 0xE6BF67: zend_insert_literal (zend_compile.c:343)
==12475==    by 0xE6C1A3: zend_add_literal (zend_compile.c:366)
==12475==    by 0xE70208: zend_do_echo (zend_compile.c:877)
==12475==    by 0xE26D5A: zendparse (zend_language_parser.y:339)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Use of uninitialised value of size 8
==12475==    at 0xF04671: zend_new_interned_string_int (zend_string.c:133)
==12475==    by 0xE6BF67: zend_insert_literal (zend_compile.c:343)
==12475==    by 0xE6C1A3: zend_add_literal (zend_compile.c:366)
==12475==    by 0xE70208: zend_do_echo (zend_compile.c:877)
==12475==    by 0xE26D5A: zendparse (zend_language_parser.y:339)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Use of uninitialised value of size 8
==12475==    at 0xF047AD: zend_new_interned_string_int (zend_string.c:151)
==12475==    by 0xE6BF67: zend_insert_literal (zend_compile.c:343)
==12475==    by 0xE6C1A3: zend_add_literal (zend_compile.c:366)
==12475==    by 0xE70208: zend_do_echo (zend_compile.c:877)
==12475==    by 0xE26D5A: zendparse (zend_language_parser.y:339)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Conditional jump or move depends on uninitialised value(s)
==12475==    at 0xE35995: lex_scan (zend_language_scanner.c:1082)
==12475==    by 0xE93294: zendlex (zend_compile.c:6909)
==12475==    by 0xE25A40: zendparse (zend_language_parser.c:3742)
==12475==    by 0xE33BAA: compile_file (zend_language_scanner.l:586)
==12475==    by 0xA92E44: phar_compile_file (phar.c:3364)
==12475==    by 0xEBFA18: zend_execute_scripts (zend.c:1333)
==12475==    by 0xDDDA5B: php_execute_script (main.c:2597)
==12475==    by 0x107746E: do_cli (php_cli.c:994)
==12475==    by 0x1078C1B: main (php_cli.c:1378)
==12475== 
==12475== Syscall param write(buf) points to uninitialised byte(s)
==12475==    at 0xD237520: __write_nocancel (in /lib64/libc-2.12.so)
==12475==    by 0x1074D7C: sapi_cli_single_write (php_cli.c:273)
==12475==    by 0x1074F09: sapi_cli_ub_write (php_cli.c:308)
==12475==    by 0xE029FA: php_output_op (output.c:1094)
==12475==    by 0xDFF82A: php_output_write (output.c:270)
==12475==    by 0xDDBCCB: php_output_wrapper (main.c:1946)
==12475==    by 0xEBC52B: zend_print_zval_ex (zend.c:332)
==12475==    by 0xEBC409: zend_print_zval (zend.c:313)
==12475==    by 0xEBAA71: zend_print_variable (zend_variables.c:160)
==12475==    by 0xF36C3B: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2409)
==12475==    by 0xF2A1EE: execute_ex (zend_vm_execute.h:363)
==12475==    by 0xF2AD91: zend_execute (zend_vm_execute.h:388)
==12475==  Address 0x1417da9c is 339,468 bytes inside a block of size 1,048,576 alloc'd
==12475==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==12475==    by 0xF0418D: zend_interned_strings_init (zend_string.c:48)
==12475==    by 0xEBD65C: zend_startup (zend.c:747)
==12475==    by 0xDDC1BC: php_module_startup (main.c:2133)
==12475==    by 0x10754DB: php_cli_startup (php_cli.c:417)
==12475==    by 0x1078B22: main (php_cli.c:1358)
==12475== 

 

Generated at Wed, 29 Jul 2015 05:45:12 +0000 (6 days ago)

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