[php-src] PR #21935: ext/gmp: Emit deprecation for precision-losing float RHS in ** / << / >>
| From: | LamentXU123 | Date: | Sat, 02 May 2026 16:55:08 +0000 |
| Subject: | [php-src] PR #21935: ext/gmp: Emit deprecation for precision-losing float RHS in ** / << / >> | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35990@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21935
Author: LamentXU123
I found this TODO message in the code base
```
For PHP 8.3 and up use zend_try_get_long()
```
Ah, so using zend_try_long() here will cause some precision loss and should be fixed after 8.3. So I
created this PR targeting 8.4. I don't sure if this worth a NEWS entry. Also may need to merge
this PR to other branches since I don't have access :)
cc @Girgias