1--TEST-- 2basic convert_cyr_string() tests 3--FILE-- 4<?php 5 6var_dump(convert_cyr_string("", "", "")); 7var_dump(convert_cyr_string(array(), array(), array())); 8 9var_dump(convert_cyr_string("[[[[[[", "q", "m")); 10var_dump(convert_cyr_string("[[[[[[", "k", "w")); 11var_dump(convert_cyr_string("[[[[[[", "m", "a")); 12var_dump(convert_cyr_string("[[[[[[", "d", "i")); 13var_dump(convert_cyr_string("[[[[[[", "w", "k")); 14var_dump(convert_cyr_string("[[[[[[", "i", "q")); 15var_dump(convert_cyr_string("", "d", "i")); 16 17echo "Done\n"; 18?> 19--EXPECTF-- 20Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 21 22Warning: convert_cyr_string(): Unknown source charset: in %s on line %d 23 24Warning: convert_cyr_string(): Unknown destination charset: in %s on line %d 25string(0) "" 26 27Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 28 29Warning: convert_cyr_string() expects parameter 1 to be string, array given in %s on line %d 30NULL 31 32Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 33 34Warning: convert_cyr_string(): Unknown source charset: q in %s on line %d 35string(6) "[[[[[[" 36 37Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 38string(6) "[[[[[[" 39 40Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 41string(6) "[[[[[[" 42 43Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 44string(6) "[[[[[[" 45 46Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 47string(6) "[[[[[[" 48 49Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 50 51Warning: convert_cyr_string(): Unknown destination charset: q in %s on line %d 52string(6) "[[[[[[" 53 54Deprecated: Function convert_cyr_string() is deprecated in %s on line %d 55string(0) "" 56Done 57