TysonAndre · GitHub

@TysonAndre

@TysonAndre TysonAndre changed the title [Proposal] Make string length for getTraceAsString() configurable [RFC] Make string length for getTraceAsString() configurable

Jul 1, 2020

@TysonAndre

nikic

@TysonAndre

nikic

@TysonAndre

Add a `zend.exception_string_param_max_len` ini setting.
(same suffix as `log_errors_max_len`)
Allow values between 0 and 1000000 bytes.
For example, with zend.exception_string_param_max_len=0,
"" would represent the empty string, and "..." would represent something
longer than the empty string.
Previously, this was hardcoded as exactly 15 bytes.
Discussion: https://externals.io/message/110717

@TysonAndre

@TysonAndre

php-pulls pushed a commit that referenced this pull request

Jul 27, 2020

jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request

Jul 30, 2020

@jrfnl jrfnl mentioned this pull request

Jul 30, 2020

Merged

adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request

Aug 4, 2026
Add a `zend.exception_string_param_max_len` ini setting.
(same suffix as `log_errors_max_len`)
Allow values between 0 and 1000000 bytes.
For example, with zend.exception_string_param_max_len=0,
"" would represent the empty string, and "..." would represent something
longer than the empty string.
Previously, this was hardcoded as exactly 15 bytes.
Discussion: https://externals.io/message/110717
Closes phpGH-5769

adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request

Aug 4, 2026

Read the original on github.com ↗