1 *** Testing mcrypt_encrypt() : usage variation ***
4 string(16) "51dc9cd9179b718b"
7 string(16) "619c335f8c4f9cbf"
10 string(16) "b1258d67ab73de00"
13 string(16) "8eecf134443bd6b9"
16 string(16) "34b5750a793baff5"
19 string(16) "7a605f2aacc8a11d"
21 --float 12.3456789000e10--
22 string(32) "74a0d7026ae586f476d4b17808851e86"
24 --float -12.3456789000e10--
25 string(32) "bfb155997017986c01090afebd62c7ca"
28 string(16) "cc60ac201164b6c7"
31 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
35 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
39 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
43 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, array given, %s(%d)
47 string(16) "6ece228c41457539"
50 string(16) "6ece228c41457539"
53 string(16) "619c335f8c4f9cbf"
56 string(16) "6ece228c41457539"
59 string(16) "619c335f8c4f9cbf"
62 string(16) "6ece228c41457539"
65 string(16) "6ece228c41457539"
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)
78 string(16) "6ece228c41457539"
81 string(16) "6ece228c41457539"
84 Error: 2 - mcrypt_encrypt() expects parameter 3 to be string, resource given, %s(%d)