[php-src] Issue #7850: Longer object names in stack trace dump
| From: | lubosdz | Date: | Wed, 29 Dec 2021 09:04:06 +0000 |
| Subject: | [php-src] Issue #7850: Longer object names in stack trace dump | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238626@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7850
Author: lubosdz
### Description
Hi,
please would it be possible to dump longer object names in stack dump e.g. when exception occurs?
I mean
PRICE_TOTAL_TPL... in following sample dump:
~~~
Stack trace:
#0 D:\xpdf\app\components\XpdfFieldInput.php(224): eval()
#1 D:\xpdf\app\components\XpdfProcessor.php(1795):
XpdfFieldInput->evalForm(Object(XpdfProcessor), 'PRICE_TOTAL_TPL...')
#2 D:\xpdf\app\components\XpdfProcessor.php(2454): XpdfProcessor->evaluateForms()
.....
~~~
Currently it dumps **only 15 chars**, which makes it difficult to trace back if more similarly named
object e.g. PRICE_TOTAL_TPL_WITH_VAT or PRICE_TOTAL_TPL_WITHOUT_VAT or
PRICE_TOTAL_TPL_SUBTOTAL etc.
Could it be like increased to 30 chars - or even more - for PHP 8.X ?
I apologize that I am not able to make PR since i am not C guy neither understand complex PHP-SRC
:-|
Thank you for any feedback.