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

==17494== Conditional jump or move depends on uninitialised value(s)
==17494==    at 0x4C2A420: memchr (vg_replace_strmem.c:792)
==17494==    by 0xE18F24: lex_scan (zend_language_scanner.l:1815)
==17494==    by 0xE75983: zendlex (zend_compile.c:6788)
==17494==    by 0xE099F8: zendparse (zend_language_parser.c:3446)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Conditional jump or move depends on uninitialised value(s)
==17494==    at 0xE192DD: lex_scan (zend_language_scanner.l:1863)
==17494==    by 0xE75983: zendlex (zend_compile.c:6788)
==17494==    by 0xE099F8: zendparse (zend_language_parser.c:3446)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Conditional jump or move depends on uninitialised value(s)
==17494==    at 0xE192FD: lex_scan (zend_language_scanner.l:1863)
==17494==    by 0xE75983: zendlex (zend_compile.c:6788)
==17494==    by 0xE099F8: zendparse (zend_language_parser.c:3446)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Use of uninitialised value of size 8
==17494==    at 0xEE4115: zend_new_interned_string_int (zend_string.c:95)
==17494==    by 0xE4CFB4: zend_insert_literal (zend_compile.c:339)
==17494==    by 0xE4D1F0: zend_add_literal (zend_compile.c:362)
==17494==    by 0xE51DB2: zend_do_echo (zend_compile.c:869)
==17494==    by 0xE0AAC1: zendparse (zend_language_parser.y:309)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Conditional jump or move depends on uninitialised value(s)
==17494==    at 0xEE413E: zend_new_interned_string_int (zend_string.c:97)
==17494==    by 0xE4CFB4: zend_insert_literal (zend_compile.c:339)
==17494==    by 0xE4D1F0: zend_add_literal (zend_compile.c:362)
==17494==    by 0xE51DB2: zend_do_echo (zend_compile.c:869)
==17494==    by 0xE0AAC1: zendparse (zend_language_parser.y:309)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Use of uninitialised value of size 8
==17494==    at 0xEE433D: zend_new_interned_string_int (zend_string.c:131)
==17494==    by 0xE4CFB4: zend_insert_literal (zend_compile.c:339)
==17494==    by 0xE4D1F0: zend_add_literal (zend_compile.c:362)
==17494==    by 0xE51DB2: zend_do_echo (zend_compile.c:869)
==17494==    by 0xE0AAC1: zendparse (zend_language_parser.y:309)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Use of uninitialised value of size 8
==17494==    at 0xEE4479: zend_new_interned_string_int (zend_string.c:149)
==17494==    by 0xE4CFB4: zend_insert_literal (zend_compile.c:339)
==17494==    by 0xE4D1F0: zend_add_literal (zend_compile.c:362)
==17494==    by 0xE51DB2: zend_do_echo (zend_compile.c:869)
==17494==    by 0xE0AAC1: zendparse (zend_language_parser.y:309)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Conditional jump or move depends on uninitialised value(s)
==17494==    at 0xE18DBA: lex_scan (zend_language_scanner.c:1091)
==17494==    by 0xE75983: zendlex (zend_compile.c:6788)
==17494==    by 0xE099F8: zendparse (zend_language_parser.c:3446)
==17494==    by 0xE16FAF: compile_file (zend_language_scanner.l:588)
==17494==    by 0xA7FC83: phar_compile_file (phar.c:3382)
==17494==    by 0xE9F979: zend_execute_scripts (zend.c:1319)
==17494==    by 0xDC231E: php_execute_script (main.c:2525)
==17494==    by 0x1088D81: do_cli (php_cli.c:994)
==17494==    by 0x108A52E: main (php_cli.c:1378)
==17494== 
==17494== Syscall param write(buf) points to uninitialised byte(s)
==17494==    at 0xD237520: __write_nocancel (in /lib64/libc-2.12.so)
==17494==    by 0x1086686: sapi_cli_single_write (php_cli.c:273)
==17494==    by 0x1086813: sapi_cli_ub_write (php_cli.c:308)
==17494==    by 0xDE6A3F: php_output_op (output.c:1094)
==17494==    by 0xDE3943: php_output_write (output.c:270)
==17494==    by 0xDC05B9: php_output_wrapper (main.c:1873)
==17494==    by 0xE9C466: zend_print_zval_ex (zend.c:331)
==17494==    by 0xE9C344: zend_print_zval (zend.c:312)
==17494==    by 0xE9A929: zend_print_variable (zend_variables.c:155)
==17494==    by 0xF0D7E6: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2145)
==17494==    by 0xF029B0: execute_ex (zend_vm_execute.h:363)
==17494==    by 0xF03542: zend_execute (zend_vm_execute.h:388)
==17494==  Address 0x1417bb9c is 336,140 bytes inside a block of size 1,048,576 alloc'd
==17494==    at 0x4C2824A: malloc (vg_replace_malloc.c:296)
==17494==    by 0xEE3E89: zend_interned_strings_init (zend_string.c:48)
==17494==    by 0xE9D5A7: zend_startup (zend.c:744)
==17494==    by 0xDC0AAA: php_module_startup (main.c:2060)
==17494==    by 0x1086DEE: php_cli_startup (php_cli.c:417)
==17494==    by 0x108A435: main (php_cli.c:1358)
==17494== 

 

Generated at Mon, 25 May 2015 21:58:44 +0000 (35 hours ago)

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