Re: Making the hardcoded string length limit of Throwable->getTraceAsString() configurable
| From: | Thomas Lamy | Date: | Thu, 25 Jun 2020 07:26:32 +0000 |
| Subject: | Re: Making the hardcoded string length limit of Throwable->getTraceAsString() configurable | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110723@lists.php.net to get a copy of this message | ||
Am 24.06.20 um 21:22 schrieb tyson andre:
Hi internals, By default, strings in parameter lists are truncated to 15 bytes by default in Throwable->getTraceAsString() (and Throwable->__toString() as a consequence). (in Zend/zend_exception.c in+1, wanted this for years but never got around to tackle it Thomasstatic void _build_trace_args(zval *arg, smart_str *str)) This limit is too short to see relevant information such as file paths, full urls, etc, which makes reporting bugs in applications inconvenient. Would there be any interest in an ini setting such asexception_string_length_limitas a non-negative value to raise this (either allowed to be 0 or more or 15 or more, defaulting to 15) (....) Thanks, - Tyson