[php-src] PR #12276: Aggressively use actual function parameters in `php_verror`
| From: | NattyNarwhal | Date: | Fri, 22 Sep 2023 18:31:39 +0000 |
| Subject: | [php-src] PR #12276: Aggressively use actual function parameters in `php_verror` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23671@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12276
Author: NattyNarwhal
PHP errors used to not show parameter info consistently. Make it so that it uses a backtrace to get
function info, similar to how exceptions work.
This makes the docref error functions' parameter argument mostly vestigal, being used only if
allocation fails basically. The parameter argument may be useful in the case it is more verbose than
the actual function args (is there a case?).
Several tests will fail from the fact we include function params. One annoyance is that
_build_trace_args truncates strings according to
exception_string_param_max_len, but at least this is user controllable.
See GH-12048. Test output will need a ton of rewriting, which I have not got to. CI will have a
field day there...