1--TEST-- 2IntlBreakIterator: clone handler 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8 9$bi = new IntlRuleBasedBreakIterator('[\p{Letter}\uFFFD]+;[:number:]+;'); 10$bi_clone = clone $bi; 11var_dump(get_class($bi), get_class($bi_clone)); 12var_dump($bi == $bi_clone); 13 14$bi->setText('foobar'); 15$bi_clone = clone $bi; 16var_dump(get_class($bi), get_class($bi_clone)); 17var_dump($bi == $bi_clone); 18?> 19--EXPECT-- 20string(26) "IntlRuleBasedBreakIterator" 21string(26) "IntlRuleBasedBreakIterator" 22bool(true) 23string(26) "IntlRuleBasedBreakIterator" 24string(26) "IntlRuleBasedBreakIterator" 25bool(true) 26