1--TEST-- 2spoofchecker with locale settings 3--EXTENSIONS-- 4intl 5--SKIPIF-- 6<?php if(!class_exists("Spoofchecker")) print 'skip'; ?> 7--FILE-- 8<?php 9 10$korean = "\xED\x95\x9C" . "\xEA\xB5\xAD" . "\xEB\xA7\x90"; 11 12$x = new Spoofchecker(); 13echo "Is suspcious, en_US\n"; 14 15$x->setAllowedLocales('en_US'); 16var_dump($x->isSuspicious($korean)); 17 18echo "Is suspcious, ko_KR\n"; 19 20$x->setAllowedLocales('en_US, ko_KR'); 21var_dump($x->isSuspicious($korean)); 22?> 23--EXPECT-- 24Is suspcious, en_US 25bool(true) 26Is suspcious, ko_KR 27bool(false) 28