Skip to content

Commit f7d0a3e

Browse files
committed
Keep original EG(jit_trace_num) value around __autoload()
1 parent 2b8ac21 commit f7d0a3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/spl/php_spl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,11 @@ static int spl_autoload(zend_string *class_name, zend_string *lc_name, const cha
269269
}
270270
zend_string_release_ex(opened_path, 0);
271271
if (new_op_array) {
272+
uint32_t orig_jit_trace_num = EG(jit_trace_num);
273+
272274
ZVAL_UNDEF(&result);
273275
zend_execute(new_op_array, &result);
276+
EG(jit_trace_num) = orig_jit_trace_num;
274277

275278
destroy_op_array(new_op_array);
276279
efree(new_op_array);

0 commit comments

Comments
 (0)