[php-src] Issue #14226: mb_detect_encoding difference between PHP 8.1.28 and 8.3.6
| From: | staabm | Date: | Tue, 14 May 2024 10:21:25 +0000 |
| Subject: | [php-src] Issue #14226: mb_detect_encoding difference between PHP 8.1.28 and 8.3.6 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246907@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14226
Author: staabm
### Description
The following code:
```php
<?php
var_dump(mb_detect_encoding("CMS-Seite l\xF6schen"));
```
Resulted in this output on 8.1.28:
```
bool(false)
```
Resulted in this output on 8.3.6:
```
string(5) "ASCII"
```
But I expected: no sure what to expect and which one is right/wrong ;)
### PHP Version
8.3.6
### Operating System
Ubuntu24.04 lts