SPOOFCHECKER_METHOD_FETCH_OBJECT;
if (USPOOF_ASCII != level &&
+#if U_ICU_VERSION_MAJOR_NUM >= 53
USPOOF_SINGLE_SCRIPT_RESTRICTIVE != level &&
+#endif
USPOOF_HIGHLY_RESTRICTIVE != level &&
USPOOF_MODERATELY_RESTRICTIVE != level &&
USPOOF_MINIMALLY_RESTRICTIVE != level &&
spoofchecker with restriction level
--SKIPIF--
<?php if(!extension_loaded('intl') || !class_exists("Spoofchecker")) print 'skip'; ?>
+<?php
+ $r = new ReflectionClass("SpoofChecker");
+ if (false === $r->getConstant("SINGLE_SCRIPT_RESTRICTIVE")) {
+ die("Incompatible ICU version");
+ }
+?>
--FILE--
<?php