[php-src] Issue #13377: FILTER_VALIDATE_INT should support FILTER_FLAG_ALLOW_THOUSAND
| From: | divinity76 | Date: | Mon, 12 Feb 2024 11:03:51 +0000 |
| Subject: | [php-src] Issue #13377: FILTER_VALIDATE_INT should support FILTER_FLAG_ALLOW_THOUSAND | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246443@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13377
Author: divinity76
### Description
just like
```
filter_var("231,402,800",FILTER_VALIDATE_FLOAT, FILTER_FLAG_ALLOW_THOUSAND)
```
returns
```
float(231402800)
```
doing
```
filter_var("231,402,800",FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_THOUSAND)
```
should return
```
int(231402800)
```
rather than the current
```
bool(false)
```