import zend mcrypt tests
[hiphop-php.git] / hphp / test / zend / bad / ext-mcrypt / mcrypt_encrypt_variation3.php.expectf
blobcdf124944527c26ff9bef95b2c5c13477d892287
1 *** Testing mcrypt_encrypt() : usage variation ***
3 --int 0--
4 string(16) "51dc9cd9179b718b"
6 --int 1--
7 string(16) "619c335f8c4f9cbf"
9 --int 12345--
10 string(16) "b1258d67ab73de00"
12 --int -12345--
13 string(16) "8eecf134443bd6b9"
15 --float 10.5--
16 string(16) "34b5750a793baff5"
18 --float -10.5--
19 string(16) "7a605f2aacc8a11d"
21 --float 12.3456789000e10--
22 string(32) "74a0d7026ae586f476d4b17808851e86"
24 --float -12.3456789000e10--
25 string(32) "bfb155997017986c01090afebd62c7ca"
27 --float .5--
28 string(16) "cc60ac201164b6c7"
30 --empty array--
31 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
32 string(0) ""
34 --int indexed array--
35 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
36 string(0) ""
38 --associative array--
39 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
40 string(0) ""
42 --nested arrays--
43 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
44 string(0) ""
46 --uppercase NULL--
47 string(16) "6ece228c41457539"
49 --lowercase null--
50 string(16) "6ece228c41457539"
52 --lowercase true--
53 string(16) "619c335f8c4f9cbf"
55 --lowercase false--
56 string(16) "6ece228c41457539"
58 --uppercase TRUE--
59 string(16) "619c335f8c4f9cbf"
61 --uppercase FALSE--
62 string(16) "6ece228c41457539"
64 --empty string DQ--
65 string(16) "6ece228c41457539"
67 --empty string SQ--
68 string(16) "6ece228c41457539"
70 --instance of classWithToString--
71 string(32) "749c3b4d16731d98370128754b7c930f"
73 --instance of classWithoutToString--
74 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, object given, %s(%d)
75 string(0) ""
77 --undefined var--
78 string(16) "6ece228c41457539"
80 --unset var--
81 string(16) "6ece228c41457539"
83 --resource--
84 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, resource given, %s(%d)
85 string(0) ""
86 ===DONE===