Hi internals,

I've created a new RFC https://wiki.php.net/rfc/throwable_string_param_max_len

Since 2003, `Throwable->getTraceAsString()` and `Throwable->__toString()`
have limited the length of string function arguments in stringified stack 
traces to 15 bytes
(e.g. `#0 /path/to/file.php(line) function(“012345678901234…”)`.
This is not enough space to render information such as paths, URLs, UUIDs, etc. 
if an end user wants to see them when debugging an issue or developing locally.

This proposes a new ini setting `throwable_string_param_max_len` that would 
allow changing the string byte limit to any value between 15 and 1000000, 
keeping the current default of 15 bytes.

Earlier discussion can be found in https://externals.io/message/110717
(Making the hardcoded string length limit of Throwable->getTraceAsString() 
configurable)

Thanks,
- Tyson
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to