|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2016-12-05 15:31 UTC] sjon at hortensius dot net
 Description: ------------ It seems Spoofchecker::isSuspicious is broken; testing an example from the manual all PHP versions work fine; except 7.1.0. This seems related to an update which was done to the localization which was not present in any of the RCs (insert rant about RCs being real RCs here) Test script: --------------- See https://3v4l.org/5HWQT, script was copied from http://php.net/manual/en/spoofchecker.issuspicious.php <?php $checker = new Spoofchecker(); var_dump($checker->isSuspicious('google.com')); var_dump($checker->isSuspicious('Рaypal.com')); Expected result: ---------------- bool(false) bool(true) Actual result: -------------- bool(false) bool(false) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 22:00:01 2025 UTC | 
Works for me with ICU 55, so it seems to be an ICU problem. $ php -v PHP 7.1.0 (cli) (built: Dec 5 2016 17:15:16) ( NTS DEBUG ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies $ cat bug73655.php <?php $checker = new Spoofchecker(); var_dump($checker->isSuspicious('google.com')); var_dump($checker->isSuspicious('Рaypal.com')); $ php bug73655.php bool(false) bool(true) $ apt-show-versions libicu-dev libicu-dev:amd64/xenial 55.1-7 uptodate libicu-dev:i386 not installed