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

==17575== Invalid free() / delete / delete[] / realloc()
==17575==    at 0x4C28BD4: free (vg_replace_malloc.c:529)
==17575==    by 0x10DA985: _efree (zend_alloc.c:2506)
==17575==    by 0x1123A95: destroy_op_array (zend_opcode.c:379)
==17575==    by 0x1116857: shutdown_executor (zend_execute_API.c:339)
==17575==    by 0x11478C6: zend_deactivate (zend.c:1106)
==17575==    by 0x10365A6: php_request_shutdown (main.c:1904)
==17575==    by 0x139AAC7: do_cli (php_cli.c:1169)
==17575==    by 0x139B3FC: main (php_cli.c:1395)
==17575==  Address 0x14f152d0 is 416 bytes inside a block of size 480 alloc'd
==17575==    at 0x4C293EC: realloc (vg_replace_malloc.c:784)
==17575==    by 0x10DE84B: __zend_realloc (zend_alloc.c:2917)
==17575==    by 0x10DAC46: _erealloc (zend_alloc.c:2521)
==17575==    by 0x1124AE4: pass_two (zend_opcode.c:538)
==17575==    by 0x1100CCB: zend_compile_func_decl (zend_compile.c:6079)
==17575==    by 0x110E4A5: zend_compile_stmt (zend_compile.c:8234)
==17575==    by 0x110DD93: zend_compile_top_stmt (zend_compile.c:8152)
==17575==    by 0x110DD3C: zend_compile_top_stmt (zend_compile.c:8147)
==17575==    by 0x109AE3C: zend_compile (zend_language_scanner.l:604)
==17575==    by 0x109B0D6: compile_file (zend_language_scanner.l:638)
==17575==    by 0xBCC396: phar_compile_file (phar.c:3335)
==17575==    by 0x1149704: zend_execute_scripts (zend.c:1558)
==17575== 

 

Generated at Mon, 23 Jul 2018 04:51:16 +0000 (1 hour ago)

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