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

==32243== Conditional jump or move depends on uninitialised value(s)
==32243==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==32243==    by 0xDD2467: lex_scan (zend_language_scanner.l:1757)
==32243==    by 0xE2D964: zendlex (zend_compile.c:6857)
==32243==    by 0xDC236C: zendparse (zend_language_parser.c:3742)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Conditional jump or move depends on uninitialised value(s)
==32243==    at 0xDD2820: lex_scan (zend_language_scanner.l:1805)
==32243==    by 0xE2D964: zendlex (zend_compile.c:6857)
==32243==    by 0xDC236C: zendparse (zend_language_parser.c:3742)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Conditional jump or move depends on uninitialised value(s)
==32243==    at 0xDD2840: lex_scan (zend_language_scanner.l:1805)
==32243==    by 0xE2D964: zendlex (zend_compile.c:6857)
==32243==    by 0xDC236C: zendparse (zend_language_parser.c:3742)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Use of uninitialised value of size 8
==32243==    at 0xE9E90D: zend_new_interned_string_int (zend_string.c:97)
==32243==    by 0xE06B87: zend_insert_literal (zend_compile.c:343)
==32243==    by 0xE06DC3: zend_add_literal (zend_compile.c:366)
==32243==    by 0xE0AE28: zend_do_echo (zend_compile.c:877)
==32243==    by 0xDC36C2: zendparse (zend_language_parser.y:339)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Conditional jump or move depends on uninitialised value(s)
==32243==    at 0xE9E936: zend_new_interned_string_int (zend_string.c:99)
==32243==    by 0xE06B87: zend_insert_literal (zend_compile.c:343)
==32243==    by 0xE06DC3: zend_add_literal (zend_compile.c:366)
==32243==    by 0xE0AE28: zend_do_echo (zend_compile.c:877)
==32243==    by 0xDC36C2: zendparse (zend_language_parser.y:339)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Use of uninitialised value of size 8
==32243==    at 0xE9EB35: zend_new_interned_string_int (zend_string.c:133)
==32243==    by 0xE06B87: zend_insert_literal (zend_compile.c:343)
==32243==    by 0xE06DC3: zend_add_literal (zend_compile.c:366)
==32243==    by 0xE0AE28: zend_do_echo (zend_compile.c:877)
==32243==    by 0xDC36C2: zendparse (zend_language_parser.y:339)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Use of uninitialised value of size 8
==32243==    at 0xE9EC71: zend_new_interned_string_int (zend_string.c:151)
==32243==    by 0xE06B87: zend_insert_literal (zend_compile.c:343)
==32243==    by 0xE06DC3: zend_add_literal (zend_compile.c:366)
==32243==    by 0xE0AE28: zend_do_echo (zend_compile.c:877)
==32243==    by 0xDC36C2: zendparse (zend_language_parser.y:339)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Conditional jump or move depends on uninitialised value(s)
==32243==    at 0xDD22FD: lex_scan (zend_language_scanner.c:1082)
==32243==    by 0xE2D964: zendlex (zend_compile.c:6857)
==32243==    by 0xDC236C: zendparse (zend_language_parser.c:3742)
==32243==    by 0xDD0512: compile_file (zend_language_scanner.l:586)
==32243==    by 0xA33149: phar_compile_file (phar.c:3359)
==32243==    by 0xE59F4D: zend_execute_scripts (zend.c:1322)
==32243==    by 0xD7ADAA: php_execute_script (main.c:2550)
==32243==    by 0x100CA1E: do_cli (php_cli.c:994)
==32243==    by 0x100E1CB: main (php_cli.c:1378)
==32243== 
==32243== Syscall param write(buf) points to uninitialised byte(s)
==32243==    at 0xD22E780: __write_nocancel (in /lib64/libc-2.12.so)
==32243==    by 0x100A32C: sapi_cli_single_write (php_cli.c:273)
==32243==    by 0x100A4B9: sapi_cli_ub_write (php_cli.c:308)
==32243==    by 0xD9F3CE: php_output_op (output.c:1093)
==32243==    by 0xD9C2D8: php_output_write (output.c:269)
==32243==    by 0xD790D1: php_output_wrapper (main.c:1912)
==32243==    by 0xE56B73: zend_print_zval_ex (zend.c:332)
==32243==    by 0xE56A51: zend_print_zval (zend.c:313)
==32243==    by 0xE550B9: zend_print_variable (zend_variables.c:159)
==32243==    by 0xED0DEB: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2402)
==32243==    by 0xEC4459: execute_ex (zend_vm_execute.h:363)
==32243==    by 0xEC4FFC: zend_execute (zend_vm_execute.h:388)
==32243==  Address 0x141ca3cc is 338,652 bytes inside a block of size 1,048,576 alloc'd
==32243==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==32243==    by 0xE9E651: zend_interned_strings_init (zend_string.c:48)
==32243==    by 0xE57CA4: zend_startup (zend.c:747)
==32243==    by 0xD795C2: php_module_startup (main.c:2099)
==32243==    by 0x100AA8B: php_cli_startup (php_cli.c:417)
==32243==    by 0x100E0D2: main (php_cli.c:1358)
==32243== 

 

Generated at Mon, 04 Aug 2014 15:49:20 +0000 (29 days ago)

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