Lines Matching refs:exception
71 zend_always_inline PHP_FIBER_API zend_bool zend_is_fiber_exit(const zend_object *exception) in zend_is_fiber_exit() argument
73 ZEND_ASSERT(exception && "No exception object provided"); in zend_is_fiber_exit()
75 return exception->ce == zend_ce_fiber_exit; in zend_is_fiber_exit()
194 if (EG(exception)) { in zend_fiber_execute()
196 if (EXPECTED(zend_is_fiber_exit(EG(exception)) || zend_is_unwind_exit(EG(exception)))) { in zend_fiber_execute()
233 zend_object *exception = EG(exception); in zend_fiber_object_destroy() local
234 EG(exception) = NULL; in zend_fiber_object_destroy()
240 if (EG(exception)) { in zend_fiber_object_destroy()
241 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy()
246 zend_exception_set_previous(EG(exception), exception); in zend_fiber_object_destroy()
249 zend_exception_error(EG(exception), E_ERROR); in zend_fiber_object_destroy()
252 EG(exception) = exception; in zend_fiber_object_destroy()
283 if (UNEXPECTED(EG(exception) && zend_is_fiber_exit(EG(exception)))) { in zend_fiber_catch_handler()
362 zval *exception, *value = NULL; in ZEND_METHOD() local
407 if (fiber->exception) { in ZEND_METHOD()
408 exception = fiber->exception; in ZEND_METHOD()
409 fiber->exception = NULL; in ZEND_METHOD()
411 zend_throw_exception_object(exception); in ZEND_METHOD()
458 zval *exception; in ZEND_METHOD() local
461 Z_PARAM_OBJECT_OF_CLASS(exception, zend_ce_throwable) in ZEND_METHOD()
471 Z_ADDREF_P(exception); in ZEND_METHOD()
472 fiber->exception = exception; in ZEND_METHOD()