summaryrefslogtreecommitdiff
path: root/php.ini-development
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2020-06-25 09:44:12 -0400
committerTyson Andre <tysonandre775@hotmail.com>2020-07-25 09:50:57 -0400
commit07db64156e180c30daa5ab5d41ed72f9bba77e6d (patch)
tree0cf33175567420d1c58315f2a98fcd54d4346206 /php.ini-development
parent8664ff7ae174c610769c36a712eeea80cc3ad933 (diff)
downloadphp-git-07db64156e180c30daa5ab5d41ed72f9bba77e6d.tar.gz
[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
Diffstat (limited to 'php.ini-development')
-rw-r--r--php.ini-development13
1 files changed, 13 insertions, 0 deletions
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 ;
;;;;;;;;;;;;;;;;;