Skip to content

Commit dbedb69

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
2 parents 3e2184f + fe06c5e commit dbedb69

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
?? ??? ????, PHP 8.2.0RC5
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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ void zend_exception_restore(void) /* {{{ */
161161

162162
static zend_always_inline bool is_handle_exception_set(void) {
163163
zend_execute_data *execute_data = EG(current_execute_data);
164-
return !execute_data->func
164+
return !execute_data
165+
|| !execute_data->func
165166
|| !ZEND_USER_CODE(execute_data->func->common.type)
166167
|| execute_data->opline->opcode == ZEND_HANDLE_EXCEPTION;
167168
}

0 commit comments

Comments
 (0)