1--TEST-- 2uuencode family tests 3--FILE-- 4<?php 5 6var_dump(convert_uuencode(array())); 7var_dump(convert_uudecode(array())); 8 9var_dump(convert_uuencode("")); 10var_dump(convert_uudecode("")); 11var_dump($enc = convert_uuencode("~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ")); 12var_dump(convert_uudecode("!@#$%^YUGFDFGHJKLUYTFBNMLOYT")); 13var_dump(convert_uudecode($enc)); 14var_dump($enc = convert_uuencode("not very sophisticated")); 15var_dump(convert_uudecode($enc)); 16var_dump(convert_uudecode(substr($enc, 0, -10))); 17 18echo "Done\n"; 19?> 20--EXPECTF-- 21Warning: convert_uuencode() expects parameter 1 to be string, array given in %s on line %d 22bool(false) 23 24Warning: convert_uudecode() expects parameter 1 to be string, array given in %s on line %d 25bool(false) 26bool(false) 27bool(false) 28string(60) "J?B%`(R0E7B8J*"E??7M03TE5651215=145-$1D=(2DM,.CQ-3D)60UA: 29` 30" 31string(1) "%s" 32string(42) "~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ" 33string(36) "6;F]T('9E<GD@<V]P:&ES=&EC871E9``` 34` 35" 36string(22) "not very sophisticated" 37 38Warning: convert_uudecode(): The given parameter is not a valid uuencoded string in %s on line %d 39bool(false) 40Done 41