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

==18621== Conditional jump or move depends on uninitialised value(s)
==18621==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==18621==    by 0xD59624: lex_scan (zend_language_scanner.l:1803)
==18621==    by 0xDACAF1: zendlex (zend_compile.c:6545)
==18621==    by 0xD4B20B: zendparse (zend_language_parser.c:3451)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Conditional jump or move depends on uninitialised value(s)
==18621==    at 0xD5995C: lex_scan (zend_language_scanner.l:1851)
==18621==    by 0xDACAF1: zendlex (zend_compile.c:6545)
==18621==    by 0xD4B20B: zendparse (zend_language_parser.c:3451)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Conditional jump or move depends on uninitialised value(s)
==18621==    at 0xD5997C: lex_scan (zend_language_scanner.l:1851)
==18621==    by 0xDACAF1: zendlex (zend_compile.c:6545)
==18621==    by 0xD4B20B: zendparse (zend_language_parser.c:3451)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Use of uninitialised value of size 8
==18621==    at 0xE1566B: zend_new_interned_string_int (zend_string.c:95)
==18621==    by 0xD87F6B: zend_insert_literal (zend_compile.c:336)
==18621==    by 0xD88184: zend_add_literal (zend_compile.c:359)
==18621==    by 0xD8C6D8: zend_do_echo (zend_compile.c:866)
==18621==    by 0xD4C24D: zendparse (zend_language_parser.y:305)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Conditional jump or move depends on uninitialised value(s)
==18621==    at 0xE15694: zend_new_interned_string_int (zend_string.c:97)
==18621==    by 0xD87F6B: zend_insert_literal (zend_compile.c:336)
==18621==    by 0xD88184: zend_add_literal (zend_compile.c:359)
==18621==    by 0xD8C6D8: zend_do_echo (zend_compile.c:866)
==18621==    by 0xD4C24D: zendparse (zend_language_parser.y:305)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Use of uninitialised value of size 8
==18621==    at 0xE15868: zend_new_interned_string_int (zend_string.c:131)
==18621==    by 0xD87F6B: zend_insert_literal (zend_compile.c:336)
==18621==    by 0xD88184: zend_add_literal (zend_compile.c:359)
==18621==    by 0xD8C6D8: zend_do_echo (zend_compile.c:866)
==18621==    by 0xD4C24D: zendparse (zend_language_parser.y:305)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Use of uninitialised value of size 8
==18621==    at 0xE1597B: zend_new_interned_string_int (zend_string.c:149)
==18621==    by 0xD87F6B: zend_insert_literal (zend_compile.c:336)
==18621==    by 0xD88184: zend_add_literal (zend_compile.c:359)
==18621==    by 0xD8C6D8: zend_do_echo (zend_compile.c:866)
==18621==    by 0xD4C24D: zendparse (zend_language_parser.y:305)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Conditional jump or move depends on uninitialised value(s)
==18621==    at 0xD594EA: lex_scan (zend_language_scanner.c:1088)
==18621==    by 0xDACAF1: zendlex (zend_compile.c:6545)
==18621==    by 0xD4B20B: zendparse (zend_language_parser.c:3451)
==18621==    by 0xD5794C: compile_file (zend_language_scanner.l:585)
==18621==    by 0x9E5DE3: phar_compile_file (phar.c:3408)
==18621==    by 0xDD323A: zend_execute_scripts (zend.c:1321)
==18621==    by 0xD05105: php_execute_script (main.c:2502)
==18621==    by 0xFA14BC: do_cli (php_cli.c:989)
==18621==    by 0xFA2AF9: main (php_cli.c:1365)
==18621== 
==18621== Syscall param write(buf) points to uninitialised byte(s)
==18621==    at 0xD02B520: __write_nocancel (in /lib64/libc-2.12.so)
==18621==    by 0xF9EF18: sapi_cli_single_write (php_cli.c:270)
==18621==    by 0xF9F0A5: sapi_cli_ub_write (php_cli.c:305)
==18621==    by 0xD284C8: php_output_op (output.c:1093)
==18621==    by 0xD25467: php_output_write (output.c:269)
==18621==    by 0xD0369C: php_output_wrapper (main.c:1868)
==18621==    by 0xDD0253: zend_print_zval_ex (zend.c:330)
==18621==    by 0xDD0131: zend_print_zval (zend.c:311)
==18621==    by 0xDCE7A2: zend_print_variable (zend_variables.c:155)
==18621==    by 0xE39CA1: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2045)
==18621==    by 0xE2F3CB: execute (zend_vm_execute.h:410)
==18621==    by 0xDD3330: zend_execute_scripts (zend.c:1329)
==18621==  Address 0x13f66844 is 314,676 bytes inside a block of size 1,048,576 alloc'd
==18621==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==18621==    by 0xE15488: zend_interned_strings_init (zend_string.c:48)
==18621==    by 0xDD1200: zend_startup (zend.c:743)
==18621==    by 0xD03AC3: php_module_startup (main.c:2038)
==18621==    by 0xF9F61B: php_cli_startup (php_cli.c:414)
==18621==    by 0xFA2A28: main (php_cli.c:1345)
==18621== 

 

Generated at Sat, 23 May 2015 19:26:44 +0000 (4 days ago)

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