1--TEST-- 2Test imap_8bit() function : basic functionality 3--EXTENSIONS-- 4imap 5--FILE-- 6<?php 7echo "*** Testing imap_8bit() : basic functionality ***\n"; 8 9var_dump(imap_8bit("String with CRLF at end \r\n")); 10//NB this appears to be a bug in cclient; a space at end of string should be encoded as =20 11var_dump(imap_8bit("String with space at end ")); 12var_dump(imap_8bit("String with tabs \t\t in middle")); 13var_dump(imap_8bit("String with tab at end \t")); 14var_dump(imap_8bit("\x00\x01\x02\x03\x04\xfe\xff\x0a\x0d")); 15 16?> 17--EXPECT-- 18*** Testing imap_8bit() : basic functionality *** 19string(28) "String with CRLF at end=20 20" 21string(25) "String with space at end " 22string(33) "String with tabs =09=09 in middle" 23string(26) "String with tab at end =09" 24string(27) "=00=01=02=03=04=FE=FF=0A=0D" 25