PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for Zend/tests/try/try_finally_009.phpt ('Try finally (with for continue)')

Script

1: <?php
2:
function foo () {
3:     for(
$i 0$i 5$i++) {
4:         do {
5:             try {
6:                 try {
7:                 } 
finally {
8:                 }
9:             } catch (
Exception $e) {
10:             } 
finally {
11:               continue;
12:             }
13:         } while (
0);
14:     }
15: }
16:
17:
foo();
18:
?>
19:

Report

==22181== Invalid free() / delete / delete[] / realloc()
==22181==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==22181==    by 0x1095989: _efree (zend_alloc.c:2499)
==22181==    by 0x10DA04C: destroy_op_array (zend_opcode.c:415)
==22181==    by 0x10CD8A6: shutdown_executor (zend_execute_API.c:348)
==22181==    by 0x1100A3C: zend_deactivate (zend.c:1078)
==22181==    by 0xFEB81E: php_request_shutdown (main.c:1765)
==22181==    by 0x136F6E6: do_cli (php_cli.c:1178)
==22181==    by 0x136FFB1: main (php_cli.c:1404)
==22181==  Address 0x14ece150 is 576 bytes inside a block of size 672 alloc'd
==22181==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==22181==    by 0x10997EF: __zend_realloc (zend_alloc.c:2900)
==22181==    by 0x1095C52: _erealloc (zend_alloc.c:2514)
==22181==    by 0x10DAECA: pass_two (zend_opcode.c:596)
==22181==    by 0x10B95F1: zend_compile_func_decl (zend_compile.c:6032)
==22181==    by 0x10C5A17: zend_compile_stmt (zend_compile.c:8198)
==22181==    by 0x10C5319: zend_compile_top_stmt (zend_compile.c:8116)
==22181==    by 0x10C52C2: zend_compile_top_stmt (zend_compile.c:8111)
==22181==    by 0x104D410: zend_compile (zend_language_scanner.l:601)
==22181==    by 0x104D6A7: compile_file (zend_language_scanner.l:635)
==22181==    by 0xBB8B49: phar_compile_file (phar.c:3339)
==22181==    by 0x1102AA6: zend_execute_scripts (zend.c:1532)
==22181== 

 

Generated at Tue, 12 Dec 2017 23:59:00 +0000 (34 hours ago)

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