[php-src] PR #16576: Fix GH-16574: Incorrect error "undefined method" messages
| From: | nielsdos | Date: | Thu, 24 Oct 2024 20:30:29 +0000 |
| Subject: | [php-src] PR #16576: Fix GH-16574: Incorrect error "undefined method" messages | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29390@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16576
Author: nielsdos
The
get_method object handler may change the object pointer. SPL does this in its
iterator implementations. This causes the error message to change to another class which is
confusing to the user. JIT handles this correctly. This patch aligns behaviour with JIT.
I'm not sure this should target stable branches; so I targetted 8.4 to be safe.