Skip to content

Commit fe06c5e

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
2 parents ec844cc + 45e224c commit fe06c5e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.1.13
44

5+
- CLI:
6+
. Fixed bug GH-9709 (Null pointer dereference with -w/-s options). (Adam Saponara)
7+
58
- Core:
69
. Fixed bug GH-9752 (Generator crashes when interrupted during argument
710
evaluation with extra named params). (Arnaud)

Zend/zend_exceptions.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ void zend_exception_restore(void) /* {{{ */
156156

157157
static zend_always_inline bool is_handle_exception_set(void) {
158158
zend_execute_data *execute_data = EG(current_execute_data);
159-
return !execute_data->func
159+
return !execute_data
160+
|| !execute_data->func
160161
|| !ZEND_USER_CODE(execute_data->func->common.type)
161162
|| execute_data->opline->opcode == ZEND_HANDLE_EXCEPTION;
162163
}

0 commit comments

Comments
 (0)