--TEST-- IntlRuleBasedBreakIterator::getBinaryRules(): basic test icu >= 61.1 && icu < 68.1 --EXTENSIONS-- intl --SKIPIF-- = 61.1'; ?> = 0) die('skip for ICU < 68.1'); ?> --FILE-- setText('sdfkjsdf88รก.... ,;'); $br = $rbbi->getBinaryRules(); $rbbi2 = new IntlRuleBasedBreakIterator($br, true); var_dump($rbbi->getRules(), $rbbi2->getRules()); var_dump($rbbi->getRules() == $rbbi2->getRules()); ?> --EXPECT-- string(137) "$LN = [[:letter:] [:number:]]; $S = [.;,:]; !!forward; $LN+ {1}; $S+ {42}; !!reverse; $LN+ {1}; $S+ {42}; !!safe_forward; !!safe_reverse;" string(137) "$LN = [[:letter:] [:number:]]; $S = [.;,:]; !!forward; $LN+ {1}; $S+ {42}; !!reverse; $LN+ {1}; $S+ {42}; !!safe_forward; !!safe_reverse;" bool(true)