[php-src] Issue #8539: built-in function in_array( ) returned wrong result
| From: | ouyanghui-git | Date: | Thu, 12 May 2022 10:38:21 +0000 |
| Subject: | [php-src] Issue #8539: built-in function in_array( ) returned wrong result | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241469@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8539
Author: ouyanghui-git
### Description
The following code:
```php
<?php
$string = '5,9';
$arr = [1,4,5,6,7];
var_dump(in_array($string,$arr));
```
Resulted in this output:
```
bool(true)
```
But I expected this output instead:
```
bool(false)
```
### PHP Version
PHP 7.3.4
### Operating System
windows 10