[php-src] PR #16021: Fix GH-15968: Avoid converting objects to strings in operator calculations.
| From: | SakiTakamachi | Date: | Tue, 24 Sep 2024 12:09:23 +0000 |
| Subject: | [php-src] PR #16021: Fix GH-15968: Avoid converting objects to strings in operator calculations. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28760@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16021
Author: SakiTakamachi
As Gina commented, there was a problem with the function I was using.
https://github.com/php/php-src/issues/15968#issuecomment-2367738164
There are almost no cases where want to treat a stringable class other than the Number class as a
string in operator calculations, so modify it so that the object is not converted to a string.