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

==19452== Conditional jump or move depends on uninitialised value(s)
==19452==    at 0x4C29740: memchr (mc_replace_strmem.c:762)
==19452==    by 0xDD6D93: lex_scan (zend_language_scanner.l:1757)
==19452==    by 0xE34058: zendlex (zend_compile.c:6866)
==19452==    by 0xDC6C98: zendparse (zend_language_parser.c:3742)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Conditional jump or move depends on uninitialised value(s)
==19452==    at 0xDD714C: lex_scan (zend_language_scanner.l:1805)
==19452==    by 0xE34058: zendlex (zend_compile.c:6866)
==19452==    by 0xDC6C98: zendparse (zend_language_parser.c:3742)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Conditional jump or move depends on uninitialised value(s)
==19452==    at 0xDD716C: lex_scan (zend_language_scanner.l:1805)
==19452==    by 0xE34058: zendlex (zend_compile.c:6866)
==19452==    by 0xDC6C98: zendparse (zend_language_parser.c:3742)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Use of uninitialised value of size 8
==19452==    at 0xEA4FF1: zend_new_interned_string_int (zend_string.c:97)
==19452==    by 0xE0D177: zend_insert_literal (zend_compile.c:343)
==19452==    by 0xE0D3B3: zend_add_literal (zend_compile.c:366)
==19452==    by 0xE11418: zend_do_echo (zend_compile.c:877)
==19452==    by 0xDC7FEE: zendparse (zend_language_parser.y:339)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Conditional jump or move depends on uninitialised value(s)
==19452==    at 0xEA501A: zend_new_interned_string_int (zend_string.c:99)
==19452==    by 0xE0D177: zend_insert_literal (zend_compile.c:343)
==19452==    by 0xE0D3B3: zend_add_literal (zend_compile.c:366)
==19452==    by 0xE11418: zend_do_echo (zend_compile.c:877)
==19452==    by 0xDC7FEE: zendparse (zend_language_parser.y:339)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Use of uninitialised value of size 8
==19452==    at 0xEA5219: zend_new_interned_string_int (zend_string.c:133)
==19452==    by 0xE0D177: zend_insert_literal (zend_compile.c:343)
==19452==    by 0xE0D3B3: zend_add_literal (zend_compile.c:366)
==19452==    by 0xE11418: zend_do_echo (zend_compile.c:877)
==19452==    by 0xDC7FEE: zendparse (zend_language_parser.y:339)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Use of uninitialised value of size 8
==19452==    at 0xEA5355: zend_new_interned_string_int (zend_string.c:151)
==19452==    by 0xE0D177: zend_insert_literal (zend_compile.c:343)
==19452==    by 0xE0D3B3: zend_add_literal (zend_compile.c:366)
==19452==    by 0xE11418: zend_do_echo (zend_compile.c:877)
==19452==    by 0xDC7FEE: zendparse (zend_language_parser.y:339)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Conditional jump or move depends on uninitialised value(s)
==19452==    at 0xDD6C29: lex_scan (zend_language_scanner.c:1082)
==19452==    by 0xE34058: zendlex (zend_compile.c:6866)
==19452==    by 0xDC6C98: zendparse (zend_language_parser.c:3742)
==19452==    by 0xDD4E3E: compile_file (zend_language_scanner.l:586)
==19452==    by 0xA35AE6: phar_compile_file (phar.c:3360)
==19452==    by 0xE60654: zend_execute_scripts (zend.c:1336)
==19452==    by 0xD7EF6D: php_execute_script (main.c:2584)
==19452==    by 0x1013102: do_cli (php_cli.c:994)
==19452==    by 0x10148AF: main (php_cli.c:1378)
==19452== 
==19452== Syscall param write(buf) points to uninitialised byte(s)
==19452==    at 0xD235600: __write_nocancel (in /lib64/libc-2.12.so)
==19452==    by 0x1010A10: sapi_cli_single_write (php_cli.c:273)
==19452==    by 0x1010B9D: sapi_cli_ub_write (php_cli.c:308)
==19452==    by 0xDA3C2E: php_output_op (output.c:1093)
==19452==    by 0xDA0A5E: php_output_write (output.c:269)
==19452==    by 0xD7D2CC: php_output_wrapper (main.c:1947)
==19452==    by 0xE5D167: zend_print_zval_ex (zend.c:332)
==19452==    by 0xE5D045: zend_print_zval (zend.c:313)
==19452==    by 0xE5B6AD: zend_print_variable (zend_variables.c:160)
==19452==    by 0xED74CF: ZEND_ECHO_SPEC_CONST_HANDLER (zend_vm_execute.h:2402)
==19452==    by 0xECAB3D: execute_ex (zend_vm_execute.h:363)
==19452==    by 0xECB6E0: zend_execute (zend_vm_execute.h:388)
==19452==  Address 0x1463ea74 is 339,204 bytes inside a block of size 1,048,576 alloc'd
==19452==    at 0x4C27AFA: malloc (vg_replace_malloc.c:291)
==19452==    by 0xEA4D35: zend_interned_strings_init (zend_string.c:48)
==19452==    by 0xE5E298: zend_startup (zend.c:747)
==19452==    by 0xD7D7BD: php_module_startup (main.c:2134)
==19452==    by 0x101116F: php_cli_startup (php_cli.c:417)
==19452==    by 0x10147B6: main (php_cli.c:1358)
==19452== 

 

Generated at Thu, 20 Nov 2014 12:38:44 +0000 (4 days ago)

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