1--TEST-- 2GH-15210 use after free after continue 3--SKIPIF-- 4<?php 5if (getenv('SKIP_ASAN')) { 6 die("skip intentionally causes segfaults"); 7} 8?> 9--PHPDBG-- 10b 4 11r 12w $a[0] 13c 14q 15--FILE-- 16<?php 17header_register_callback(function() { echo "sent";}); 18$a = [0]; 19$a[0] = 1; 20?> 21--EXPECTF-- 22[Successful compilation of %s] 23prompt> [Breakpoint #0 added at %s:%d] 24prompt> [Breakpoint #0 at %s:%d, hits: 1] 25>00004: $a[0] = 1; 26 00005: ?> 27 00006: 28prompt> [Added watchpoint #0 for $a[0]] 29prompt> [Breaking on watchpoint $a[0]] 30Old value: [Breaking on watchpoint $a[0]] 31Old value: 0 32New value: 1 33>00002: header_register_callback(function() { echo "sent";}); 34 00003: $a = [0]; 35 00004: $a[0] = 1; 36prompt> [$a[0] has been removed, removing watchpoint] 37