[php-src] Issue #15971: in_array function with empty array
| From: | qlixes | Date: | Sat, 21 Sep 2024 01:02:58 +0000 |
| Subject: | [php-src] Issue #15971: in_array function with empty array | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247842@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15971
Author: qlixes
### Description
The following code:
```php
<?php
print_r(in_array('127.0.0.1', []);
```
Resulted in this output:
```
empty blank page
```
But I expected this output instead:
```
it shoud show boolean type
```
### PHP Version
PHP 8.3
### Operating System
OSX Ventura