From 07db64156e180c30daa5ab5d41ed72f9bba77e6d Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Thu, 25 Jun 2020 09:44:12 -0400 Subject: [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 Closes GH-5769 --- php.ini-development | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'php.ini-development') diff --git a/php.ini-development b/php.ini-development index 490b214d29..ba30258fd0 100644 --- a/php.ini-development +++ b/php.ini-development @@ -159,6 +159,11 @@ ; Development Value: Off ; Production Value: On +; zend.exception_string_param_max_len +; Default Value: 15 +; Development Value: 15 +; Production Value: 0 + ;;;;;;;;;;;;;;;;;;;; ; php.ini Options ; ;;;;;;;;;;;;;;;;;;;; @@ -371,6 +376,14 @@ zend.enable_gc = On ; Production Value: On zend.exception_ignore_args = Off +; Allows setting the maximum string length in an argument of a stringified stack trace +; to a value between 0 and 1000000. +; This has no effect when zend.exception_ignore_args is enabled. +; Default Value: 15 +; Development Value: 15 +; Production Value: 0 +zend.exception_string_param_max_len = 15 + ;;;;;;;;;;;;;;;;; ; Miscellaneous ; ;;;;;;;;;;;;;;;;; -- cgit v1.2.1