diff options
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index be0eb1c33e..8c96bb6098 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -482,8 +482,8 @@ static void _build_trace_args(zval *arg, smart_str *str) /* {{{ */ break; case IS_STRING: smart_str_appendc(str, '\''); - smart_str_append_escaped(str, Z_STRVAL_P(arg), MIN(Z_STRLEN_P(arg), 15)); - if (Z_STRLEN_P(arg) > 15) { + smart_str_append_escaped(str, Z_STRVAL_P(arg), MIN(Z_STRLEN_P(arg), EG(exception_string_param_max_len))); + if (Z_STRLEN_P(arg) > EG(exception_string_param_max_len)) { smart_str_appends(str, "...', "); } else { smart_str_appends(str, "', "); |