TysonAndre
changed the title
[Proposal] Make string length for getTraceAsString() configurable
[RFC] Make string length for getTraceAsString() configurable
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
jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request
Jul 30, 2020
jrfnl
mentioned this pull request
Merged
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request
Aug 4, 2026Add 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