[php-src] Issue #8077: Zlib:gzinflate operates on invalid string
| From: | acidspit | Date: | Fri, 11 Feb 2022 02:59:53 +0000 |
| Subject: | [php-src] Issue #8077: Zlib:gzinflate operates on invalid string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239619@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8077
Author: acidspit
### Description
The following code:
```php
<?php
var_dump(gzinflate('{to"'));
```
Resulted in this output:
```
string(3) "�ޑ"
```
But I expected this output instead:
```
bool(false)
```
### PHP Version
PHP 8.1.2
### Operating System
Linux Mint 20.3 Una