Fix a bug when throwing from nested FPI regions
commit4797536f9d5b13e274a23e24b04941426665d852
authorjdelong <jdelong@fb.com>
Wed, 6 Feb 2013 00:04:41 +0000 (5 16:04 -0800)
committerSara Golemon <sgolemon@fb.com>
Mon, 11 Feb 2013 11:44:06 +0000 (11 03:44 -0800)
treef7b5f5ffefbfa5f410a2ed2d3c8de6ca04094a5a
parentc67d35c50a718f0f7252cdf5e11d029a2c3534cf
Fix a bug when throwing from nested FPI regions

Since we now use the original throw location to figure out
which EHEnt applies when propagating from a fault funclet, we need to
check whether we've already unwound the ActRec before doing it again.
Doing it again could cause issues with nested FPI regions (hitting an
assert in sandboxes).
hphp/runtime/vm/bytecode.cpp
hphp/test/vm/exception_bug_2080454.php [new file with mode: 0644]
hphp/test/vm/exception_bug_2080454.php.exp [new file with mode: 0644]