simple ignore arguments in exceptions implementation

This commit is contained in:
Joe Watkins 2019-06-17 20:51:52 +02:00
parent b546ae986a
commit 0819e6dc9b
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E
7 changed files with 40 additions and 1 deletions

View file

@ -212,7 +212,9 @@ static zend_object *zend_default_exception_new_ex(zend_class_entry *class_type,
object_properties_init(object, class_type);
if (EG(current_execute_data)) {
zend_fetch_debug_backtrace(&trace, skip_top_traces, 0, 0);
zend_fetch_debug_backtrace(&trace,
skip_top_traces,
EG(exception_ignore_args) ? DEBUG_BACKTRACE_IGNORE_ARGS : 0, 0);
} else {
array_init(&trace);
}