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

==28424== Conditional jump or move depends on uninitialised value(s)
==28424==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==28424==    by 0xD0BB08: lex_scan (zend_language_scanner.l:1803)
==28424==    by 0xD5EF75: zendlex (zend_compile.c:6545)
==28424==    by 0xCFD6EF: zendparse (zend_language_parser.c:3451)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Conditional jump or move depends on uninitialised value(s)
==28424==    at 0xD0BE40: lex_scan (zend_language_scanner.l:1851)
==28424==    by 0xD5EF75: zendlex (zend_compile.c:6545)
==28424==    by 0xCFD6EF: zendparse (zend_language_parser.c:3451)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Conditional jump or move depends on uninitialised value(s)
==28424==    at 0xD0BE60: lex_scan (zend_language_scanner.l:1851)
==28424==    by 0xD5EF75: zendlex (zend_compile.c:6545)
==28424==    by 0xCFD6EF: zendparse (zend_language_parser.c:3451)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Use of uninitialised value of size 8
==28424==    at 0xDC7A07: zend_new_interned_string_int (zend_string.c:95)
==28424==    by 0xD3A3EF: zend_insert_literal (zend_compile.c:336)
==28424==    by 0xD3A608: zend_add_literal (zend_compile.c:359)
==28424==    by 0xD3EB5C: zend_do_echo (zend_compile.c:866)
==28424==    by 0xCFE731: zendparse (zend_language_parser.y:305)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Conditional jump or move depends on uninitialised value(s)
==28424==    at 0xDC7A30: zend_new_interned_string_int (zend_string.c:97)
==28424==    by 0xD3A3EF: zend_insert_literal (zend_compile.c:336)
==28424==    by 0xD3A608: zend_add_literal (zend_compile.c:359)
==28424==    by 0xD3EB5C: zend_do_echo (zend_compile.c:866)
==28424==    by 0xCFE731: zendparse (zend_language_parser.y:305)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Use of uninitialised value of size 8
==28424==    at 0xDC7C04: zend_new_interned_string_int (zend_string.c:131)
==28424==    by 0xD3A3EF: zend_insert_literal (zend_compile.c:336)
==28424==    by 0xD3A608: zend_add_literal (zend_compile.c:359)
==28424==    by 0xD3EB5C: zend_do_echo (zend_compile.c:866)
==28424==    by 0xCFE731: zendparse (zend_language_parser.y:305)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Use of uninitialised value of size 8
==28424==    at 0xDC7D17: zend_new_interned_string_int (zend_string.c:149)
==28424==    by 0xD3A3EF: zend_insert_literal (zend_compile.c:336)
==28424==    by 0xD3A608: zend_add_literal (zend_compile.c:359)
==28424==    by 0xD3EB5C: zend_do_echo (zend_compile.c:866)
==28424==    by 0xCFE731: zendparse (zend_language_parser.y:305)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Conditional jump or move depends on uninitialised value(s)
==28424==    at 0xD0B9CE: lex_scan (zend_language_scanner.c:1088)
==28424==    by 0xD5EF75: zendlex (zend_compile.c:6545)
==28424==    by 0xCFD6EF: zendparse (zend_language_parser.c:3451)
==28424==    by 0xD09E30: compile_file (zend_language_scanner.l:585)
==28424==    by 0x999103: phar_compile_file (phar.c:3411)
==28424==    by 0xD8561E: zend_execute_scripts (zend.c:1321)
==28424==    by 0xCB78F5: php_execute_script (main.c:2502)
==28424==    by 0xF53858: do_cli (php_cli.c:989)
==28424==    by 0xF54E95: main (php_cli.c:1365)
==28424== 
==28424== Syscall param write(buf) points to uninitialised byte(s)
==28424==    at 0xD02B520: __write_nocancel (in /lib64/libc-2.12.so)
==28424==    by 0xF512B4: sapi_cli_single_write (php_cli.c:270)
==28424==    by 0xF51441: sapi_cli_ub_write (php_cli.c:305)
==28424==    by 0xCDA9AC: php_output_op (output.c:1093)
==28424==    by 0xCD794B: php_output_write (output.c:269)
==28424==    by 0xCB5E8C: php_output_wrapper (main.c:1868)
==28424==    by 0xD82637: zend_print_zval_ex (zend.c:330)
==28424==    by 0xD82515: zend_print_zval (zend.c:311)
==28424==    by 0xD80B86: zend_print_variable (zend_variables.c:155)
==28424==    by 0xDEC03D: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2045)
==28424==    by 0xDE1767: execute (zend_vm_execute.h:410)
==28424==    by 0xD85714: zend_execute_scripts (zend.c:1329)
==28424==  Address 0x13f66844 is 314,676 bytes inside a block of size 1,048,576 alloc'd
==28424==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==28424==    by 0xDC7824: zend_interned_strings_init (zend_string.c:48)
==28424==    by 0xD835E4: zend_startup (zend.c:743)
==28424==    by 0xCB62B3: php_module_startup (main.c:2038)
==28424==    by 0xF519B7: php_cli_startup (php_cli.c:414)
==28424==    by 0xF54DC4: main (php_cli.c:1345)
==28424== 

 

Generated at Tue, 03 Mar 2015 22:20:43 +0000 (2 days ago)

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