This commit is contained in:
Xinchen Hui 2012-08-16 23:01:58 +08:00
parent 6a87a21c71
commit acd402d4e7

View file

@ -2278,7 +2278,7 @@ void zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2
Z_TYPE_P(label) = IS_NULL; Z_TYPE_P(label) = IS_NULL;
if (op_array->last_try_catch) { if (op_array->last_try_catch) {
zend_uint i, op_num = opline - CG(active_op_array)->opcodes; zend_uint i, op_num = opline - op_array->opcodes;
for (i=0; i<op_array->last_try_catch; i++) { for (i=0; i<op_array->last_try_catch; i++) {
if (op_array->try_catch_array[i].try_op > op_num) { if (op_array->try_catch_array[i].try_op > op_num) {
break; break;