Skip to content

Commit 6e2d47e

Browse files
committed
Fixed bug #80968 (JIT segfault with return from required file)
1 parent ef59d09 commit 6e2d47e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2021, PHP 8.0.8
44

5+
- Opcache:
6+
. Fixed bug #80968 (JIT segfault with return from required file). (Dmitry)
7+
58
- Standard:
69
. Fixed bug #81048 (phpinfo(INFO_VARIABLES) "Array to string conversion").
710
(cmb)

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15290,8 +15290,9 @@ static zend_bool zend_jit_opline_supports_reg(const zend_op_array *op_array, zen
1529015290
case ZEND_IS_IDENTICAL:
1529115291
case ZEND_IS_NOT_IDENTICAL:
1529215292
case ZEND_CASE:
15293-
case ZEND_RETURN:
1529415293
return 1;
15294+
case ZEND_RETURN:
15295+
return (op_array->type != ZEND_EVAL_CODE && op_array->function_name);
1529515296
case ZEND_ASSIGN:
1529615297
op1_info = OP1_INFO();
1529715298
op2_info = OP2_INFO();

0 commit comments

Comments
 (0)