[php-src] Issue #19119: Implicit conversion from int to float should report a loses precision error too
| From: | kkmuffme | Date: | Sun, 13 Jul 2025 15:34:53 +0000 |
| Subject: | [php-src] Issue #19119: Implicit conversion from int to float should report a loses precision error too | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250427@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19119
Author: kkmuffme
### Description
The following code:
```php
<?php
$x = PHP_INT_MAX + 1;
```
Resulted in this output:
```
```
But I expected this output instead:
```
Deprecated: Implicit conversion from int 9223372036854775807 to float loses precision
```
This error already exists the other way round https://3v4l.org/4C3ru#v8.4.8
Also see https://github.com/php/php-src/issues/17081
### PHP Version
```plain
PHP 8.4.8
```
### Operating System
_No response_