Skip to content

Commit c721386

Browse files
committed
Use zend_clear_exception(à API
1 parent 00eab9b commit c721386

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Zend/zend_vm_def.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7503,8 +7503,7 @@ ZEND_VM_HANDLER(203, ZEND_SILENCE_CATCH, ANY, ANY)
75037503
DTRACE_EXCEPTION_CAUGHT((char *)EG(exception)->ce->name);
75047504
}
75057505
#endif /* HAVE_DTRACE */
7506-
OBJ_RELEASE(EG(exception));
7507-
EG(exception) = NULL;
7506+
zend_clear_exception();
75087507

75097508
/* Free object (needed to not leak memory on @new) */
75107509
if (Z_TYPE_P(EX_VAR(opline->result.var)) == IS_OBJECT) {

Zend/zend_vm_execute.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)