[php-src] Issue #10647: Spoofchecker::isSuspicious $errorCode always null
| From: | MatTheCat | Date: | Tue, 21 Feb 2023 13:36:17 +0000 |
| Subject: | [php-src] Issue #10647: Spoofchecker::isSuspicious $errorCode always null | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243764@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10647
Author: MatTheCat
### Description
The following code:
```php
<?php
$sc = new SpoofChecker();
var_dump($sc->isSuspicious('à̀', $error), $error);
```
Resulted in this output:
```
bool(true)
NULL
```
But I expected this output instead:
```
bool(true)
int(32)
```
### PHP Version
all
### Operating System
_No response_