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

==24883== Conditional jump or move depends on uninitialised value(s)
==24883==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==24883==    by 0xDC9C68: lex_scan (zend_language_scanner.l:1815)
==24883==    by 0xE264DD: zendlex (zend_compile.c:6767)
==24883==    by 0xDBA728: zendparse (zend_language_parser.c:3446)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Conditional jump or move depends on uninitialised value(s)
==24883==    at 0xDCA021: lex_scan (zend_language_scanner.l:1863)
==24883==    by 0xE264DD: zendlex (zend_compile.c:6767)
==24883==    by 0xDBA728: zendparse (zend_language_parser.c:3446)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Conditional jump or move depends on uninitialised value(s)
==24883==    at 0xDCA041: lex_scan (zend_language_scanner.l:1863)
==24883==    by 0xE264DD: zendlex (zend_compile.c:6767)
==24883==    by 0xDBA728: zendparse (zend_language_parser.c:3446)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Use of uninitialised value of size 8
==24883==    at 0xE94A39: zend_new_interned_string_int (zend_string.c:95)
==24883==    by 0xDFDC98: zend_insert_literal (zend_compile.c:339)
==24883==    by 0xDFDED4: zend_add_literal (zend_compile.c:362)
==24883==    by 0xE02A96: zend_do_echo (zend_compile.c:869)
==24883==    by 0xDBB805: zendparse (zend_language_parser.y:309)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Conditional jump or move depends on uninitialised value(s)
==24883==    at 0xE94A62: zend_new_interned_string_int (zend_string.c:97)
==24883==    by 0xDFDC98: zend_insert_literal (zend_compile.c:339)
==24883==    by 0xDFDED4: zend_add_literal (zend_compile.c:362)
==24883==    by 0xE02A96: zend_do_echo (zend_compile.c:869)
==24883==    by 0xDBB805: zendparse (zend_language_parser.y:309)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Use of uninitialised value of size 8
==24883==    at 0xE94C61: zend_new_interned_string_int (zend_string.c:131)
==24883==    by 0xDFDC98: zend_insert_literal (zend_compile.c:339)
==24883==    by 0xDFDED4: zend_add_literal (zend_compile.c:362)
==24883==    by 0xE02A96: zend_do_echo (zend_compile.c:869)
==24883==    by 0xDBB805: zendparse (zend_language_parser.y:309)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Use of uninitialised value of size 8
==24883==    at 0xE94D9D: zend_new_interned_string_int (zend_string.c:149)
==24883==    by 0xDFDC98: zend_insert_literal (zend_compile.c:339)
==24883==    by 0xDFDED4: zend_add_literal (zend_compile.c:362)
==24883==    by 0xE02A96: zend_do_echo (zend_compile.c:869)
==24883==    by 0xDBB805: zendparse (zend_language_parser.y:309)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Conditional jump or move depends on uninitialised value(s)
==24883==    at 0xDC9AFE: lex_scan (zend_language_scanner.c:1091)
==24883==    by 0xE264DD: zendlex (zend_compile.c:6767)
==24883==    by 0xDBA728: zendparse (zend_language_parser.c:3446)
==24883==    by 0xDC7CF3: compile_file (zend_language_scanner.l:588)
==24883==    by 0xA31E13: phar_compile_file (phar.c:3384)
==24883==    by 0xE50311: zend_execute_scripts (zend.c:1319)
==24883==    by 0xD733D4: php_execute_script (main.c:2506)
==24883==    by 0x1034A41: do_cli (php_cli.c:994)
==24883==    by 0x10361EE: main (php_cli.c:1378)
==24883== 
==24883== Syscall param write(buf) points to uninitialised byte(s)
==24883==    at 0xD235600: __write_nocancel (in /lib64/libc-2.12.so)
==24883==    by 0x1032346: sapi_cli_single_write (php_cli.c:273)
==24883==    by 0x10324D3: sapi_cli_ub_write (php_cli.c:308)
==24883==    by 0xD9781A: php_output_op (output.c:1093)
==24883==    by 0xD9471E: php_output_write (output.c:269)
==24883==    by 0xD7175E: php_output_wrapper (main.c:1868)
==24883==    by 0xE4CDFE: zend_print_zval_ex (zend.c:331)
==24883==    by 0xE4CCDC: zend_print_zval (zend.c:312)
==24883==    by 0xE4B2C1: zend_print_variable (zend_variables.c:155)
==24883==    by 0xEBE08F: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2141)
==24883==    by 0xEB32C4: execute_ex (zend_vm_execute.h:363)
==24883==    by 0xEB3E56: zend_execute (zend_vm_execute.h:388)
==24883==  Address 0x1463e93c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==24883==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==24883==    by 0xE947AD: zend_interned_strings_init (zend_string.c:48)
==24883==    by 0xE4DF3F: zend_startup (zend.c:744)
==24883==    by 0xD71C4F: php_module_startup (main.c:2055)
==24883==    by 0x1032AAE: php_cli_startup (php_cli.c:417)
==24883==    by 0x10360F5: main (php_cli.c:1358)
==24883== 

 

Generated at Thu, 18 Dec 2014 07:17:56 +0000 (4 hours ago)

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