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