[php-src] Issue #18695: zend_ast_export() - float not preserved
| From: | mvorisek | Date: | Thu, 29 May 2025 07:43:17 +0000 |
| Subject: | [php-src] Issue #18695: zend_ast_export() - float not preserved | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250180@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/18695
Author: mvorisek
### Description
The following code:
```php
<?php
assert(!is_float(0.0));
```
Resulted in this output:
```
Uncaught AssertionError: assert(!is_float(0))
```
But I expected this output instead:
```
Uncaught AssertionError: assert(!is_float(0.0))
```
online repro: https://3v4l.org/Rt2QB
The dumped AST must preserve the original meaning.
### PHP Version
```plain
any
```
### Operating System
any