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

==23130== Conditional jump or move depends on uninitialised value(s)
==23130==    at 0x4C2A4A0: memchr (vg_replace_strmem.c:883)
==23130==    by 0xE3728F: lex_scan (zend_language_scanner.l:1757)
==23130==    by 0xE94CB4: zendlex (zend_compile.c:6911)
==23130==    by 0xE271D0: zendparse (zend_language_parser.c:3742)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Conditional jump or move depends on uninitialised value(s)
==23130==    at 0xE37648: lex_scan (zend_language_scanner.l:1805)
==23130==    by 0xE94CB4: zendlex (zend_compile.c:6911)
==23130==    by 0xE271D0: zendparse (zend_language_parser.c:3742)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Conditional jump or move depends on uninitialised value(s)
==23130==    at 0xE37668: lex_scan (zend_language_scanner.l:1805)
==23130==    by 0xE94CB4: zendlex (zend_compile.c:6911)
==23130==    by 0xE271D0: zendparse (zend_language_parser.c:3742)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Use of uninitialised value of size 8
==23130==    at 0xF06CB1: zend_new_interned_string_int (zend_string.c:97)
==23130==    by 0xE6D9C3: zend_insert_literal (zend_compile.c:343)
==23130==    by 0xE6DBFF: zend_add_literal (zend_compile.c:366)
==23130==    by 0xE71C64: zend_do_echo (zend_compile.c:877)
==23130==    by 0xE284EA: zendparse (zend_language_parser.y:339)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Conditional jump or move depends on uninitialised value(s)
==23130==    at 0xF06CDA: zend_new_interned_string_int (zend_string.c:99)
==23130==    by 0xE6D9C3: zend_insert_literal (zend_compile.c:343)
==23130==    by 0xE6DBFF: zend_add_literal (zend_compile.c:366)
==23130==    by 0xE71C64: zend_do_echo (zend_compile.c:877)
==23130==    by 0xE284EA: zendparse (zend_language_parser.y:339)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Use of uninitialised value of size 8
==23130==    at 0xF06ED9: zend_new_interned_string_int (zend_string.c:133)
==23130==    by 0xE6D9C3: zend_insert_literal (zend_compile.c:343)
==23130==    by 0xE6DBFF: zend_add_literal (zend_compile.c:366)
==23130==    by 0xE71C64: zend_do_echo (zend_compile.c:877)
==23130==    by 0xE284EA: zendparse (zend_language_parser.y:339)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Use of uninitialised value of size 8
==23130==    at 0xF07015: zend_new_interned_string_int (zend_string.c:151)
==23130==    by 0xE6D9C3: zend_insert_literal (zend_compile.c:343)
==23130==    by 0xE6DBFF: zend_add_literal (zend_compile.c:366)
==23130==    by 0xE71C64: zend_do_echo (zend_compile.c:877)
==23130==    by 0xE284EA: zendparse (zend_language_parser.y:339)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Conditional jump or move depends on uninitialised value(s)
==23130==    at 0xE37125: lex_scan (zend_language_scanner.c:1082)
==23130==    by 0xE94CB4: zendlex (zend_compile.c:6911)
==23130==    by 0xE271D0: zendparse (zend_language_parser.c:3742)
==23130==    by 0xE3533A: compile_file (zend_language_scanner.l:586)
==23130==    by 0xA93060: phar_compile_file (phar.c:3364)
==23130==    by 0xEC1438: zend_execute_scripts (zend.c:1333)
==23130==    by 0xDDF125: php_execute_script (main.c:2610)
==23130==    by 0x1079CD6: do_cli (php_cli.c:994)
==23130==    by 0x107B483: main (php_cli.c:1378)
==23130== 
==23130== Syscall param write(buf) points to uninitialised byte(s)
==23130==    at 0xD236560: __write_nocancel (in /lib64/libc-2.12.so)
==23130==    by 0x10775E4: sapi_cli_single_write (php_cli.c:273)
==23130==    by 0x1077771: sapi_cli_ub_write (php_cli.c:308)
==23130==    by 0xE0413E: php_output_op (output.c:1094)
==23130==    by 0xE00F6E: php_output_write (output.c:270)
==23130==    by 0xDDD395: php_output_wrapper (main.c:1959)
==23130==    by 0xEBDF4B: zend_print_zval_ex (zend.c:332)
==23130==    by 0xEBDE29: zend_print_zval (zend.c:313)
==23130==    by 0xEBC491: zend_print_variable (zend_variables.c:160)
==23130==    by 0xF394A3: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2409)
==23130==    by 0xF2CA56: execute_ex (zend_vm_execute.h:363)
==23130==    by 0xF2D5F9: zend_execute (zend_vm_execute.h:388)
==23130==  Address 0x14183b5c is 339,660 bytes inside a block of size 1,048,576 alloc'd
==23130==    at 0x4C282CA: malloc (vg_replace_malloc.c:299)
==23130==    by 0xF069F5: zend_interned_strings_init (zend_string.c:48)
==23130==    by 0xEBF07C: zend_startup (zend.c:747)
==23130==    by 0xDDD886: php_module_startup (main.c:2146)
==23130==    by 0x1077D43: php_cli_startup (php_cli.c:417)
==23130==    by 0x107B38A: main (php_cli.c:1358)
==23130== 

 

Generated at Wed, 03 Feb 2016 02:50:01 +0000 (10 days ago)

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