Lines Matching refs:EG
124 if (EG(prev_exception)) { in zend_exception_save()
125 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_save()
127 if (EG(exception)) { in zend_exception_save()
128 EG(prev_exception) = EG(exception); in zend_exception_save()
130 EG(exception) = NULL; in zend_exception_save()
136 if (EG(prev_exception)) { in zend_exception_restore()
137 if (EG(exception)) { in zend_exception_restore()
138 zend_exception_set_previous(EG(exception), EG(prev_exception)); in zend_exception_restore()
140 EG(exception) = EG(prev_exception); in zend_exception_restore()
142 EG(prev_exception) = NULL; in zend_exception_restore()
148 zend_execute_data *execute_data = EG(current_execute_data); in is_handle_exception_set()
168 zend_object *previous = EG(exception); in zend_throw_exception_internal()
175 zend_exception_set_previous(exception, EG(exception)); in zend_throw_exception_internal()
176 EG(exception) = exception; in zend_throw_exception_internal()
182 if (!EG(current_execute_data)) { in zend_throw_exception_internal()
186 if (EG(exception)) { in zend_throw_exception_internal()
187 zend_exception_error(EG(exception), E_ERROR); in zend_throw_exception_internal()
201 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_exception_internal()
202 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_exception_internal()
209 if (EG(prev_exception)) { in zend_clear_exception()
210 OBJ_RELEASE(EG(prev_exception)); in zend_clear_exception()
211 EG(prev_exception) = NULL; in zend_clear_exception()
213 if (!EG(exception)) { in zend_clear_exception()
217 exception = EG(exception); in zend_clear_exception()
218 EG(exception) = NULL; in zend_clear_exception()
220 if (EG(current_execute_data)) { in zend_clear_exception()
221 EG(current_execute_data)->opline = EG(opline_before_exception); in zend_clear_exception()
224 EG(opline_before_exception) = NULL; in zend_clear_exception()
241 if (EG(current_execute_data)) { in zend_default_exception_new_ex()
244 EG(exception_ignore_args) ? DEBUG_BACKTRACE_IGNORE_ARGS : 0, 0); in zend_default_exception_new_ex()
500 …smart_str_append_escaped(str, Z_STRVAL_P(arg), MIN(Z_STRLEN_P(arg), EG(exception_string_param_max_… in _build_trace_args()
501 if (Z_STRLEN_P(arg) > EG(exception_string_param_max_len)) { in _build_trace_args()
523 smart_str_append_printf(str, "%.*G", (int) EG(precision), Z_DVAL_P(arg)); in _build_trace_args()
619 if (EG(exception)) { in ZEND_METHOD()
930 EG(exception) = NULL; in zend_exception_error()
948 if (!EG(exception)) { in zend_exception_error()
957 if (EG(exception)) { in zend_exception_error()
960 ZVAL_OBJ(&zv, EG(exception)); in zend_exception_error()
1018 ZEND_ASSERT(!EG(exception)); in zend_throw_unwind_exit()
1019 EG(exception) = zend_objects_new(&zend_ce_unwind_exit); in zend_throw_unwind_exit()
1020 EG(opline_before_exception) = EG(current_execute_data)->opline; in zend_throw_unwind_exit()
1021 EG(current_execute_data)->opline = EG(exception_op); in zend_throw_unwind_exit()