Lines Matching refs:trace
242 zval trace; in zend_default_exception_new_ex() local
252 zend_fetch_debug_backtrace(&trace, in zend_default_exception_new_ex()
256 array_init(&trace); in zend_default_exception_new_ex()
258 Z_SET_REFCOUNT(trace, 0); in zend_default_exception_new_ex()
275 zend_update_property_ex(base_ce, object, ZSTR_KNOWN(ZEND_STR_TRACE), &trace); in zend_default_exception_new_ex()
589 ZEND_API zend_string *zend_trace_to_string(HashTable *trace, bool include_main) { in zend_trace_to_string() argument
595 ZEND_HASH_FOREACH_NUM_KEY_VAL(trace, index, frame) { in zend_trace_to_string()
623 zval *trace = zend_read_property_ex(base_ce, Z_OBJ_P(object), ZSTR_KNOWN(ZEND_STR_TRACE), 1, &rv); in ZEND_METHOD() local
629 ZEND_ASSERT(Z_TYPE_P(trace) == IS_ARRAY); in ZEND_METHOD()
630 RETURN_NEW_STR(zend_trace_to_string(Z_ARRVAL_P(trace), /* include_main */ true)); in ZEND_METHOD()
647 zval trace, *exception; in ZEND_METHOD() local
670 fci.retval = &trace; in ZEND_METHOD()
677 if (Z_TYPE(trace) != IS_STRING) { in ZEND_METHOD()
678 zval_ptr_dtor(&trace); in ZEND_METHOD()
679 ZVAL_UNDEF(&trace); in ZEND_METHOD()
690 zend_string *tmp_trace = (Z_TYPE(trace) == IS_STRING && Z_STRLEN(trace)) in ZEND_METHOD()
691 ? zend_string_copy(Z_STR(trace)) in ZEND_METHOD()
717 zval_ptr_dtor(&trace); in ZEND_METHOD()