On Wed, Jun 24, 2020 at 9:22 PM tyson andre <tysonandre...@hotmail.com> wrote: > > 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 `static 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 as > `exception_string_length_limit` as a non-negative value to raise this (either > allowed to be 0 or more or 15 or more, defaulting to 15)
Just as a suggestion, might it not be simpler just to increase the limit to something a bit higher than 15? (Personally, I view the growth of things like .INI parameters with suspicion. I feel each one should really "carry its weight". But if this one does, that is fine.) Alex -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php