[php-src] PR #18810: Properly handle reference return value from __toString()
| From: | nielsdos | Date: | Mon, 09 Jun 2025 13:00:19 +0000 |
| Subject: | [php-src] PR #18810: Properly handle reference return value from __toString() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32034@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18810
Author: nielsdos
It's possible to return a reference from __toString(), but this is not handled and results in a
(confusing) error telling that the return value must be a string.
Properly handle this by unwrapping the reference.