xref: /PHP-8.4/ext/intl/tests/gh10647.phpt (revision 218a93b8)
1--TEST--
2Bug GH-10647 (Spoofchecker::isSuspicious $errorCode always null)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7$error = 123;
8var_dump($error);
9
10$x = new Spoofchecker();
11var_dump($x->isSuspicious("\u{041F}aypal.com", $error));
12var_dump($error);
13
14var_dump($x->areConfusable('google.com', 'goog1e.com', $error));
15var_dump($error);
16?>
17--EXPECTF--
18int(123)
19bool(true)
20int(%d)
21bool(true)
22int(%d)
23