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

==28314== Conditional jump or move depends on uninitialised value(s)
==28314==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==28314==    by 0xD0CAA4: lex_scan (zend_language_scanner.l:1803)
==28314==    by 0xD5FF11: zendlex (zend_compile.c:6545)
==28314==    by 0xCFE68B: zendparse (zend_language_parser.c:3451)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Conditional jump or move depends on uninitialised value(s)
==28314==    at 0xD0CDDC: lex_scan (zend_language_scanner.l:1851)
==28314==    by 0xD5FF11: zendlex (zend_compile.c:6545)
==28314==    by 0xCFE68B: zendparse (zend_language_parser.c:3451)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Conditional jump or move depends on uninitialised value(s)
==28314==    at 0xD0CDFC: lex_scan (zend_language_scanner.l:1851)
==28314==    by 0xD5FF11: zendlex (zend_compile.c:6545)
==28314==    by 0xCFE68B: zendparse (zend_language_parser.c:3451)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Use of uninitialised value of size 8
==28314==    at 0xDC89EB: zend_new_interned_string_int (zend_string.c:95)
==28314==    by 0xD3B38B: zend_insert_literal (zend_compile.c:336)
==28314==    by 0xD3B5A4: zend_add_literal (zend_compile.c:359)
==28314==    by 0xD3FAF8: zend_do_echo (zend_compile.c:866)
==28314==    by 0xCFF6CD: zendparse (zend_language_parser.y:305)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Conditional jump or move depends on uninitialised value(s)
==28314==    at 0xDC8A14: zend_new_interned_string_int (zend_string.c:97)
==28314==    by 0xD3B38B: zend_insert_literal (zend_compile.c:336)
==28314==    by 0xD3B5A4: zend_add_literal (zend_compile.c:359)
==28314==    by 0xD3FAF8: zend_do_echo (zend_compile.c:866)
==28314==    by 0xCFF6CD: zendparse (zend_language_parser.y:305)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Use of uninitialised value of size 8
==28314==    at 0xDC8BE8: zend_new_interned_string_int (zend_string.c:131)
==28314==    by 0xD3B38B: zend_insert_literal (zend_compile.c:336)
==28314==    by 0xD3B5A4: zend_add_literal (zend_compile.c:359)
==28314==    by 0xD3FAF8: zend_do_echo (zend_compile.c:866)
==28314==    by 0xCFF6CD: zendparse (zend_language_parser.y:305)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Use of uninitialised value of size 8
==28314==    at 0xDC8CFB: zend_new_interned_string_int (zend_string.c:149)
==28314==    by 0xD3B38B: zend_insert_literal (zend_compile.c:336)
==28314==    by 0xD3B5A4: zend_add_literal (zend_compile.c:359)
==28314==    by 0xD3FAF8: zend_do_echo (zend_compile.c:866)
==28314==    by 0xCFF6CD: zendparse (zend_language_parser.y:305)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Conditional jump or move depends on uninitialised value(s)
==28314==    at 0xD0C96A: lex_scan (zend_language_scanner.c:1088)
==28314==    by 0xD5FF11: zendlex (zend_compile.c:6545)
==28314==    by 0xCFE68B: zendparse (zend_language_parser.c:3451)
==28314==    by 0xD0ADCC: compile_file (zend_language_scanner.l:585)
==28314==    by 0x9997BD: phar_compile_file (phar.c:3407)
==28314==    by 0xD865BA: zend_execute_scripts (zend.c:1321)
==28314==    by 0xCB8891: php_execute_script (main.c:2502)
==28314==    by 0xF5483C: do_cli (php_cli.c:989)
==28314==    by 0xF55E79: main (php_cli.c:1365)
==28314== 
==28314== Syscall param write(buf) points to uninitialised byte(s)
==28314==    at 0xD02B520: __write_nocancel (in /lib64/libc-2.12.so)
==28314==    by 0xF52298: sapi_cli_single_write (php_cli.c:270)
==28314==    by 0xF52425: sapi_cli_ub_write (php_cli.c:305)
==28314==    by 0xCDB948: php_output_op (output.c:1093)
==28314==    by 0xCD88E7: php_output_write (output.c:269)
==28314==    by 0xCB6E28: php_output_wrapper (main.c:1868)
==28314==    by 0xD835D3: zend_print_zval_ex (zend.c:330)
==28314==    by 0xD834B1: zend_print_zval (zend.c:311)
==28314==    by 0xD81B22: zend_print_variable (zend_variables.c:155)
==28314==    by 0xDED021: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2045)
==28314==    by 0xDE274B: execute (zend_vm_execute.h:410)
==28314==    by 0xD866B0: zend_execute_scripts (zend.c:1329)
==28314==  Address 0x13f66844 is 314,676 bytes inside a block of size 1,048,576 alloc'd
==28314==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==28314==    by 0xDC8808: zend_interned_strings_init (zend_string.c:48)
==28314==    by 0xD84580: zend_startup (zend.c:743)
==28314==    by 0xCB724F: php_module_startup (main.c:2038)
==28314==    by 0xF5299B: php_cli_startup (php_cli.c:414)
==28314==    by 0xF55DA8: main (php_cli.c:1345)
==28314== 

 

Generated at Thu, 16 Apr 2015 10:21:45 +0000 (5 days ago)

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