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

==31368== Conditional jump or move depends on uninitialised value(s)
==31368==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==31368==    by 0xDBFC7C: lex_scan (zend_language_scanner.l:1815)
==31368==    by 0xE1C265: zendlex (zend_compile.c:6752)
==31368==    by 0xDB073C: zendparse (zend_language_parser.c:3446)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Conditional jump or move depends on uninitialised value(s)
==31368==    at 0xDC0035: lex_scan (zend_language_scanner.l:1863)
==31368==    by 0xE1C265: zendlex (zend_compile.c:6752)
==31368==    by 0xDB073C: zendparse (zend_language_parser.c:3446)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Conditional jump or move depends on uninitialised value(s)
==31368==    at 0xDC0055: lex_scan (zend_language_scanner.l:1863)
==31368==    by 0xE1C265: zendlex (zend_compile.c:6752)
==31368==    by 0xDB073C: zendparse (zend_language_parser.c:3446)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Use of uninitialised value of size 8
==31368==    at 0xE8A7AD: zend_new_interned_string_int (zend_string.c:95)
==31368==    by 0xDF3CAC: zend_insert_literal (zend_compile.c:339)
==31368==    by 0xDF3EE8: zend_add_literal (zend_compile.c:362)
==31368==    by 0xDF8AAA: zend_do_echo (zend_compile.c:869)
==31368==    by 0xDB1819: zendparse (zend_language_parser.y:309)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Conditional jump or move depends on uninitialised value(s)
==31368==    at 0xE8A7D6: zend_new_interned_string_int (zend_string.c:97)
==31368==    by 0xDF3CAC: zend_insert_literal (zend_compile.c:339)
==31368==    by 0xDF3EE8: zend_add_literal (zend_compile.c:362)
==31368==    by 0xDF8AAA: zend_do_echo (zend_compile.c:869)
==31368==    by 0xDB1819: zendparse (zend_language_parser.y:309)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Use of uninitialised value of size 8
==31368==    at 0xE8A9D5: zend_new_interned_string_int (zend_string.c:131)
==31368==    by 0xDF3CAC: zend_insert_literal (zend_compile.c:339)
==31368==    by 0xDF3EE8: zend_add_literal (zend_compile.c:362)
==31368==    by 0xDF8AAA: zend_do_echo (zend_compile.c:869)
==31368==    by 0xDB1819: zendparse (zend_language_parser.y:309)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Use of uninitialised value of size 8
==31368==    at 0xE8AB11: zend_new_interned_string_int (zend_string.c:149)
==31368==    by 0xDF3CAC: zend_insert_literal (zend_compile.c:339)
==31368==    by 0xDF3EE8: zend_add_literal (zend_compile.c:362)
==31368==    by 0xDF8AAA: zend_do_echo (zend_compile.c:869)
==31368==    by 0xDB1819: zendparse (zend_language_parser.y:309)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Conditional jump or move depends on uninitialised value(s)
==31368==    at 0xDBFB12: lex_scan (zend_language_scanner.c:1091)
==31368==    by 0xE1C265: zendlex (zend_compile.c:6752)
==31368==    by 0xDB073C: zendparse (zend_language_parser.c:3446)
==31368==    by 0xDBDD07: compile_file (zend_language_scanner.l:588)
==31368==    by 0xA28D86: phar_compile_file (phar.c:3383)
==31368==    by 0xE46086: zend_execute_scripts (zend.c:1308)
==31368==    by 0xD693A4: php_execute_script (main.c:2506)
==31368==    by 0x102A7B5: do_cli (php_cli.c:994)
==31368==    by 0x102BF62: main (php_cli.c:1378)
==31368== 
==31368== Syscall param write(buf) points to uninitialised byte(s)
==31368==    at 0xD22F780: __write_nocancel (in /lib64/libc-2.12.so)
==31368==    by 0x10280BA: sapi_cli_single_write (php_cli.c:273)
==31368==    by 0x1028247: sapi_cli_ub_write (php_cli.c:308)
==31368==    by 0xD8D7BE: php_output_op (output.c:1093)
==31368==    by 0xD8A6C2: php_output_write (output.c:269)
==31368==    by 0xD6772E: php_output_wrapper (main.c:1868)
==31368==    by 0xE42C86: zend_print_zval_ex (zend.c:331)
==31368==    by 0xE42B64: zend_print_zval (zend.c:312)
==31368==    by 0xE41149: zend_print_variable (zend_variables.c:154)
==31368==    by 0xEB3E03: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2141)
==31368==    by 0xEA9038: execute_ex (zend_vm_execute.h:363)
==31368==    by 0xEA9BCA: zend_execute (zend_vm_execute.h:388)
==31368==  Address 0x141ca7ec is 336,140 bytes inside a block of size 1,048,576 alloc'd
==31368==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==31368==    by 0xE8A521: zend_interned_strings_init (zend_string.c:48)
==31368==    by 0xE43DC7: zend_startup (zend.c:744)
==31368==    by 0xD67C1F: php_module_startup (main.c:2055)
==31368==    by 0x1028822: php_cli_startup (php_cli.c:417)
==31368==    by 0x102BE69: main (php_cli.c:1358)
==31368== 

 

Generated at Tue, 19 Aug 2014 16:41:26 +0000 (18 hours ago)

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