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

==21600== Conditional jump or move depends on uninitialised value(s)
==21600==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==21600==    by 0xDE23B7: lex_scan (zend_language_scanner.l:1757)
==21600==    by 0xE3F9F8: zendlex (zend_compile.c:6900)
==21600==    by 0xDD22BC: zendparse (zend_language_parser.c:3742)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Conditional jump or move depends on uninitialised value(s)
==21600==    at 0xDE2770: lex_scan (zend_language_scanner.l:1805)
==21600==    by 0xE3F9F8: zendlex (zend_compile.c:6900)
==21600==    by 0xDD22BC: zendparse (zend_language_parser.c:3742)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Conditional jump or move depends on uninitialised value(s)
==21600==    at 0xDE2790: lex_scan (zend_language_scanner.l:1805)
==21600==    by 0xE3F9F8: zendlex (zend_compile.c:6900)
==21600==    by 0xDD22BC: zendparse (zend_language_parser.c:3742)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Use of uninitialised value of size 8
==21600==    at 0xEB0A95: zend_new_interned_string_int (zend_string.c:97)
==21600==    by 0xE1879B: zend_insert_literal (zend_compile.c:343)
==21600==    by 0xE189D7: zend_add_literal (zend_compile.c:366)
==21600==    by 0xE1CA3C: zend_do_echo (zend_compile.c:877)
==21600==    by 0xDD3612: zendparse (zend_language_parser.y:339)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Conditional jump or move depends on uninitialised value(s)
==21600==    at 0xEB0ABE: zend_new_interned_string_int (zend_string.c:99)
==21600==    by 0xE1879B: zend_insert_literal (zend_compile.c:343)
==21600==    by 0xE189D7: zend_add_literal (zend_compile.c:366)
==21600==    by 0xE1CA3C: zend_do_echo (zend_compile.c:877)
==21600==    by 0xDD3612: zendparse (zend_language_parser.y:339)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Use of uninitialised value of size 8
==21600==    at 0xEB0CBD: zend_new_interned_string_int (zend_string.c:133)
==21600==    by 0xE1879B: zend_insert_literal (zend_compile.c:343)
==21600==    by 0xE189D7: zend_add_literal (zend_compile.c:366)
==21600==    by 0xE1CA3C: zend_do_echo (zend_compile.c:877)
==21600==    by 0xDD3612: zendparse (zend_language_parser.y:339)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Use of uninitialised value of size 8
==21600==    at 0xEB0DF9: zend_new_interned_string_int (zend_string.c:151)
==21600==    by 0xE1879B: zend_insert_literal (zend_compile.c:343)
==21600==    by 0xE189D7: zend_add_literal (zend_compile.c:366)
==21600==    by 0xE1CA3C: zend_do_echo (zend_compile.c:877)
==21600==    by 0xDD3612: zendparse (zend_language_parser.y:339)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Conditional jump or move depends on uninitialised value(s)
==21600==    at 0xDE224D: lex_scan (zend_language_scanner.c:1082)
==21600==    by 0xE3F9F8: zendlex (zend_compile.c:6900)
==21600==    by 0xDD22BC: zendparse (zend_language_parser.c:3742)
==21600==    by 0xDE0462: compile_file (zend_language_scanner.l:586)
==21600==    by 0xA40266: phar_compile_file (phar.c:3360)
==21600==    by 0xE6C07C: zend_execute_scripts (zend.c:1333)
==21600==    by 0xD8A607: php_execute_script (main.c:2597)
==21600==    by 0x1023A4A: do_cli (php_cli.c:994)
==21600==    by 0x10251F7: main (php_cli.c:1378)
==21600== 
==21600== Syscall param write(buf) points to uninitialised byte(s)
==21600==    at 0xD237520: __write_nocancel (in /lib64/libc-2.12.so)
==21600==    by 0x1021358: sapi_cli_single_write (php_cli.c:273)
==21600==    by 0x10214E5: sapi_cli_ub_write (php_cli.c:308)
==21600==    by 0xDAF276: php_output_op (output.c:1094)
==21600==    by 0xDAC0A6: php_output_write (output.c:270)
==21600==    by 0xD88860: php_output_wrapper (main.c:1945)
==21600==    by 0xE68B8F: zend_print_zval_ex (zend.c:332)
==21600==    by 0xE68A6D: zend_print_zval (zend.c:313)
==21600==    by 0xE670D5: zend_print_variable (zend_variables.c:160)
==21600==    by 0xEE323A: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2406)
==21600==    by 0xED680E: execute_ex (zend_vm_execute.h:363)
==21600==    by 0xED73B1: zend_execute (zend_vm_execute.h:388)
==21600==  Address 0x1417cafc is 339,564 bytes inside a block of size 1,048,576 alloc'd
==21600==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==21600==    by 0xEB07D9: zend_interned_strings_init (zend_string.c:48)
==21600==    by 0xE69CC0: zend_startup (zend.c:747)
==21600==    by 0xD88D51: php_module_startup (main.c:2132)
==21600==    by 0x1021AB7: php_cli_startup (php_cli.c:417)
==21600==    by 0x10250FE: main (php_cli.c:1358)
==21600== 

 

Generated at Fri, 27 Mar 2015 03:26:43 +0000 (2 days ago)

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