Arquivos
hhvm/hphp/test/quick/debugger/flow_pseudomain.php
T
Mike Magruder f051e2fe04 Don't go back to the interpreter after the end of pseudo main when debugging
Fix a long-standing bug where if you step off of the end of pseudo main we'd segfault in the interpreter loop. To get this we have to have a breakpoint in the final TC in pseudo main, and have that called from another TC, then Step or Next off the end. We'd end up with a PC of zero after the ret, which makes sense, but the logic after interpreting a block of code to stay in the interpreter when debugging was blind to this case.
2013-07-15 17:34:47 -07:00

6 linhas
81 B
PHP

<?php
// Copyright 2004-present Facebook. All Rights Reserved.
$x = 1;
echo $x;