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