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_008.phpt ('Try finally (with break in do...while)')

Script

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

Report

==22194== Invalid free() / delete / delete[] / realloc()
==22194==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==22194==    by 0x10C9DEF: _efree (zend_alloc.c:2506)
==22194==    by 0x11111F4: destroy_op_array (zend_opcode.c:406)
==22194==    by 0x11045DC: shutdown_executor (zend_execute_API.c:350)
==22194==    by 0x1139437: zend_deactivate (zend.c:1106)
==22194==    by 0x1027C68: php_request_shutdown (main.c:1765)
==22194==    by 0x1389D7F: do_cli (php_cli.c:1178)
==22194==    by 0x138A6B4: main (php_cli.c:1404)
==22194==  Address 0x14f03560 is 416 bytes inside a block of size 480 alloc'd
==22194==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==22194==    by 0x10CDAE9: __zend_realloc (zend_alloc.c:2914)
==22194==    by 0x10CA0B0: _erealloc (zend_alloc.c:2521)
==22194==    by 0x111207E: pass_two (zend_opcode.c:565)
==22194==    by 0x10EECE4: zend_compile_func_decl (zend_compile.c:6004)
==22194==    by 0x10FC0E3: zend_compile_stmt (zend_compile.c:8174)
==22194==    by 0x10FB9D1: zend_compile_top_stmt (zend_compile.c:8092)
==22194==    by 0x10FB97A: zend_compile_top_stmt (zend_compile.c:8087)
==22194==    by 0x108A54F: zend_compile (zend_language_scanner.l:603)
==22194==    by 0x108A7E9: compile_file (zend_language_scanner.l:637)
==22194==    by 0xBCCAF1: phar_compile_file (phar.c:3337)
==22194==    by 0x113B2BB: zend_execute_scripts (zend.c:1560)
==22194== 

 

Generated at Wed, 23 May 2018 02:31:34 +0000 (3 days ago)

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