diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 86e70d51fb318..68528d30f2630 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -207,43 +207,43 @@ ZEND_END_ARG_INFO() /* }}} */ const zend_function_entry mcrypt_functions[] = { /* {{{ */ - PHP_FE(mcrypt_get_key_size, arginfo_mcrypt_get_key_size) - PHP_FE(mcrypt_get_block_size, arginfo_mcrypt_get_block_size) - PHP_FE(mcrypt_get_cipher_name, arginfo_mcrypt_get_cipher_name) - PHP_FE(mcrypt_create_iv, arginfo_mcrypt_create_iv) - - PHP_FE(mcrypt_list_algorithms, arginfo_mcrypt_list_algorithms) - PHP_FE(mcrypt_list_modes, arginfo_mcrypt_list_modes) - PHP_FE(mcrypt_get_iv_size, arginfo_mcrypt_get_iv_size) - PHP_FE(mcrypt_encrypt, arginfo_mcrypt_encrypt) - PHP_FE(mcrypt_decrypt, arginfo_mcrypt_decrypt) - - PHP_FE(mcrypt_module_open, arginfo_mcrypt_module_open) - PHP_FE(mcrypt_generic_init, arginfo_mcrypt_generic_init) - PHP_FE(mcrypt_generic, arginfo_mcrypt_generic) - PHP_FE(mdecrypt_generic, arginfo_mdecrypt_generic) - PHP_FE(mcrypt_generic_deinit, arginfo_mcrypt_generic_deinit) - - PHP_FE(mcrypt_enc_self_test, arginfo_mcrypt_enc_self_test) - PHP_FE(mcrypt_enc_is_block_algorithm_mode, arginfo_mcrypt_enc_is_block_algorithm_mode) - PHP_FE(mcrypt_enc_is_block_algorithm, arginfo_mcrypt_enc_is_block_algorithm) - PHP_FE(mcrypt_enc_is_block_mode, arginfo_mcrypt_enc_is_block_mode) - PHP_FE(mcrypt_enc_get_block_size, arginfo_mcrypt_enc_get_block_size) - PHP_FE(mcrypt_enc_get_key_size, arginfo_mcrypt_enc_get_key_size) - PHP_FE(mcrypt_enc_get_supported_key_sizes, arginfo_mcrypt_enc_get_supported_key_sizes) - PHP_FE(mcrypt_enc_get_iv_size, arginfo_mcrypt_enc_get_iv_size) - PHP_FE(mcrypt_enc_get_algorithms_name, arginfo_mcrypt_enc_get_algorithms_name) - PHP_FE(mcrypt_enc_get_modes_name, arginfo_mcrypt_enc_get_modes_name) - PHP_FE(mcrypt_module_self_test, arginfo_mcrypt_module_self_test) - - PHP_FE(mcrypt_module_is_block_algorithm_mode, arginfo_mcrypt_module_is_block_algorithm_mode) - PHP_FE(mcrypt_module_is_block_algorithm, arginfo_mcrypt_module_is_block_algorithm) - PHP_FE(mcrypt_module_is_block_mode, arginfo_mcrypt_module_is_block_mode) - PHP_FE(mcrypt_module_get_algo_block_size, arginfo_mcrypt_module_get_algo_block_size) - PHP_FE(mcrypt_module_get_algo_key_size, arginfo_mcrypt_module_get_algo_key_size) - PHP_FE(mcrypt_module_get_supported_key_sizes, arginfo_mcrypt_module_get_supported_key_sizes) - - PHP_FE(mcrypt_module_close, arginfo_mcrypt_module_close) + PHP_DEP_FE(mcrypt_get_key_size, arginfo_mcrypt_get_key_size) + PHP_DEP_FE(mcrypt_get_block_size, arginfo_mcrypt_get_block_size) + PHP_DEP_FE(mcrypt_get_cipher_name, arginfo_mcrypt_get_cipher_name) + PHP_DEP_FE(mcrypt_create_iv, arginfo_mcrypt_create_iv) + + PHP_DEP_FE(mcrypt_list_algorithms, arginfo_mcrypt_list_algorithms) + PHP_DEP_FE(mcrypt_list_modes, arginfo_mcrypt_list_modes) + PHP_DEP_FE(mcrypt_get_iv_size, arginfo_mcrypt_get_iv_size) + PHP_DEP_FE(mcrypt_encrypt, arginfo_mcrypt_encrypt) + PHP_DEP_FE(mcrypt_decrypt, arginfo_mcrypt_decrypt) + + PHP_DEP_FE(mcrypt_module_open, arginfo_mcrypt_module_open) + PHP_DEP_FE(mcrypt_generic_init, arginfo_mcrypt_generic_init) + PHP_DEP_FE(mcrypt_generic, arginfo_mcrypt_generic) + PHP_DEP_FE(mdecrypt_generic, arginfo_mdecrypt_generic) + PHP_DEP_FE(mcrypt_generic_deinit, arginfo_mcrypt_generic_deinit) + + PHP_DEP_FE(mcrypt_enc_self_test, arginfo_mcrypt_enc_self_test) + PHP_DEP_FE(mcrypt_enc_is_block_algorithm_mode, arginfo_mcrypt_enc_is_block_algorithm_mode) + PHP_DEP_FE(mcrypt_enc_is_block_algorithm, arginfo_mcrypt_enc_is_block_algorithm) + PHP_DEP_FE(mcrypt_enc_is_block_mode, arginfo_mcrypt_enc_is_block_mode) + PHP_DEP_FE(mcrypt_enc_get_block_size, arginfo_mcrypt_enc_get_block_size) + PHP_DEP_FE(mcrypt_enc_get_key_size, arginfo_mcrypt_enc_get_key_size) + PHP_DEP_FE(mcrypt_enc_get_supported_key_sizes, arginfo_mcrypt_enc_get_supported_key_sizes) + PHP_DEP_FE(mcrypt_enc_get_iv_size, arginfo_mcrypt_enc_get_iv_size) + PHP_DEP_FE(mcrypt_enc_get_algorithms_name, arginfo_mcrypt_enc_get_algorithms_name) + PHP_DEP_FE(mcrypt_enc_get_modes_name, arginfo_mcrypt_enc_get_modes_name) + PHP_DEP_FE(mcrypt_module_self_test, arginfo_mcrypt_module_self_test) + + PHP_DEP_FE(mcrypt_module_is_block_algorithm_mode, arginfo_mcrypt_module_is_block_algorithm_mode) + PHP_DEP_FE(mcrypt_module_is_block_algorithm, arginfo_mcrypt_module_is_block_algorithm) + PHP_DEP_FE(mcrypt_module_is_block_mode, arginfo_mcrypt_module_is_block_mode) + PHP_DEP_FE(mcrypt_module_get_algo_block_size, arginfo_mcrypt_module_get_algo_block_size) + PHP_DEP_FE(mcrypt_module_get_algo_key_size, arginfo_mcrypt_module_get_algo_key_size) + PHP_DEP_FE(mcrypt_module_get_supported_key_sizes, arginfo_mcrypt_module_get_supported_key_sizes) + + PHP_DEP_FE(mcrypt_module_close, arginfo_mcrypt_module_close) PHP_FE_END }; /* }}} */ diff --git a/ext/mcrypt/mcrypt_filter.c b/ext/mcrypt/mcrypt_filter.c index 03d7c5315f8c9..fc5aefbbe4603 100644 --- a/ext/mcrypt/mcrypt_filter.c +++ b/ext/mcrypt/mcrypt_filter.c @@ -161,6 +161,8 @@ static php_stream_filter *php_mcrypt_filter_create(const char *filtername, zval char *mode = "cbc"; php_mcrypt_filter_data *data; + php_error_docref(NULL, E_DEPRECATED, "mcrypt and mdecrypt stream filters have been deprecated"); + if (strncasecmp(filtername, "mdecrypt.", sizeof("mdecrypt.") - 1) == 0) { encrypt = 0; cipher += sizeof("de") - 1; diff --git a/ext/mcrypt/tests/blowfish.phpt b/ext/mcrypt/tests/blowfish.phpt index a133091d78ef1..8b06d6ec7ad4e 100644 --- a/ext/mcrypt/tests/blowfish.phpt +++ b/ext/mcrypt/tests/blowfish.phpt @@ -54,38 +54,178 @@ echo "\n", $guess, "\n"; ?> --EXPECTF-- key plain crypt guess stat -0000000000000000 0000000000000000 4ef997456198dd78 4ef997456198dd78 OK -FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF 51866fd5b85ecb8a 51866fd5b85ecb8a OK -3000000000000000 1000000000000001 7d856f9a613063f2 7d856f9a613063f2 OK -1111111111111111 1111111111111111 2466dd878b963c9d 2466dd878b963c9d OK -0123456789ABCDEF 1111111111111111 61f9c3802281b096 61f9c3802281b096 OK -1111111111111111 0123456789ABCDEF 7d0cc630afda1ec7 7d0cc630afda1ec7 OK -FEDCBA9876543210 0123456789ABCDEF 0aceab0fc6a0a28d 0aceab0fc6a0a28d OK -7CA110454A1A6E57 01A1D6D039776742 59c68245eb05282b 59c68245eb05282b OK -0131D9619DC1376E 5CD54CA83DEF57DA b1b8cc0b250f09a0 b1b8cc0b250f09a0 OK -07A1133E4A0B2686 0248D43806F67172 1730e5778bea1da4 1730e5778bea1da4 OK -3849674C2602319E 51454B582DDF440A a25e7856cf2651eb a25e7856cf2651eb OK -04B915BA43FEB5B6 42FD443059577FA2 353882b109ce8f1a 353882b109ce8f1a OK -0113B970FD34F2CE 059B5E0851CF143A 48f4d0884c379918 48f4d0884c379918 OK -0170F175468FB5E6 0756D8E0774761D2 432193b78951fc98 432193b78951fc98 OK -43297FAD38E373FE 762514B829BF486A 13f04154d69d1ae5 13f04154d69d1ae5 OK -07A7137045DA2A16 3BDD119049372802 2eedda93ffd39c79 2eedda93ffd39c79 OK -04689104C2FD3B2F 26955F6835AF609A d887e0393c2da6e3 d887e0393c2da6e3 OK -37D06BB516CB7546 164D5E404F275232 5f99d04f5b163969 5f99d04f5b163969 OK -1F08260D1AC2465E 6B056E18759F5CCA 4a057a3b24d3977b 4a057a3b24d3977b OK -584023641ABA6176 004BD6EF09176062 452031c1e4fada8e 452031c1e4fada8e OK -025816164629B007 480D39006EE762F2 7555ae39f59b87bd 7555ae39f59b87bd OK -49793EBC79B3258F 437540C8698F3CFA 53c55f9cb49fc019 53c55f9cb49fc019 OK -4FB05E1515AB73A7 072D43A077075292 7a8e7bfa937e89a3 7a8e7bfa937e89a3 OK -49E95D6D4CA229BF 02FE55778117F12A cf9c5d7a4986adb5 cf9c5d7a4986adb5 OK -018310DC409B26D6 1D9D5C5018F728C2 d1abb290658bc778 d1abb290658bc778 OK -1C587F1C13924FEF 305532286D6F295A 55cb3774d13ef201 55cb3774d13ef201 OK -0101010101010101 0123456789ABCDEF fa34ec4847b268b2 fa34ec4847b268b2 OK -1F1F1F1F0E0E0E0E 0123456789ABCDEF a790795108ea3cae a790795108ea3cae OK -E0FEE0FEF1FEF1FE 0123456789ABCDEF c39e072d9fac631d c39e072d9fac631d OK -0000000000000000 FFFFFFFFFFFFFFFF 014933e0cdaff6e4 014933e0cdaff6e4 OK -FFFFFFFFFFFFFFFF 0000000000000000 f21e9a77b71c49bc f21e9a77b71c49bc OK -0123456789ABCDEF 0000000000000000 245946885754369a 245946885754369a OK -FEDCBA9876543210 FFFFFFFFFFFFFFFF 6b5c5a9c5d9e0a5a 6b5c5a9c5d9e0a5a OK + +Deprecated: Function mcrypt_module_open() is deprecated in %s%eblowfish.php on line %d +0000000000000000 0000000000000000 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +4ef997456198dd78 4ef997456198dd78 OK +FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +51866fd5b85ecb8a 51866fd5b85ecb8a OK +3000000000000000 1000000000000001 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +7d856f9a613063f2 7d856f9a613063f2 OK +1111111111111111 1111111111111111 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +2466dd878b963c9d 2466dd878b963c9d OK +0123456789ABCDEF 1111111111111111 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +61f9c3802281b096 61f9c3802281b096 OK +1111111111111111 0123456789ABCDEF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +7d0cc630afda1ec7 7d0cc630afda1ec7 OK +FEDCBA9876543210 0123456789ABCDEF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +0aceab0fc6a0a28d 0aceab0fc6a0a28d OK +7CA110454A1A6E57 01A1D6D039776742 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +59c68245eb05282b 59c68245eb05282b OK +0131D9619DC1376E 5CD54CA83DEF57DA +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +b1b8cc0b250f09a0 b1b8cc0b250f09a0 OK +07A1133E4A0B2686 0248D43806F67172 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +1730e5778bea1da4 1730e5778bea1da4 OK +3849674C2602319E 51454B582DDF440A +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +a25e7856cf2651eb a25e7856cf2651eb OK +04B915BA43FEB5B6 42FD443059577FA2 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +353882b109ce8f1a 353882b109ce8f1a OK +0113B970FD34F2CE 059B5E0851CF143A +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +48f4d0884c379918 48f4d0884c379918 OK +0170F175468FB5E6 0756D8E0774761D2 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +432193b78951fc98 432193b78951fc98 OK +43297FAD38E373FE 762514B829BF486A +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +13f04154d69d1ae5 13f04154d69d1ae5 OK +07A7137045DA2A16 3BDD119049372802 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +2eedda93ffd39c79 2eedda93ffd39c79 OK +04689104C2FD3B2F 26955F6835AF609A +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +d887e0393c2da6e3 d887e0393c2da6e3 OK +37D06BB516CB7546 164D5E404F275232 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +5f99d04f5b163969 5f99d04f5b163969 OK +1F08260D1AC2465E 6B056E18759F5CCA +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +4a057a3b24d3977b 4a057a3b24d3977b OK +584023641ABA6176 004BD6EF09176062 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +452031c1e4fada8e 452031c1e4fada8e OK +025816164629B007 480D39006EE762F2 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +7555ae39f59b87bd 7555ae39f59b87bd OK +49793EBC79B3258F 437540C8698F3CFA +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +53c55f9cb49fc019 53c55f9cb49fc019 OK +4FB05E1515AB73A7 072D43A077075292 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +7a8e7bfa937e89a3 7a8e7bfa937e89a3 OK +49E95D6D4CA229BF 02FE55778117F12A +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +cf9c5d7a4986adb5 cf9c5d7a4986adb5 OK +018310DC409B26D6 1D9D5C5018F728C2 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +d1abb290658bc778 d1abb290658bc778 OK +1C587F1C13924FEF 305532286D6F295A +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +55cb3774d13ef201 55cb3774d13ef201 OK +0101010101010101 0123456789ABCDEF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +fa34ec4847b268b2 fa34ec4847b268b2 OK +1F1F1F1F0E0E0E0E 0123456789ABCDEF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +a790795108ea3cae a790795108ea3cae OK +E0FEE0FEF1FEF1FE 0123456789ABCDEF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +c39e072d9fac631d c39e072d9fac631d OK +0000000000000000 FFFFFFFFFFFFFFFF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +014933e0cdaff6e4 014933e0cdaff6e4 OK +FFFFFFFFFFFFFFFF 0000000000000000 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +f21e9a77b71c49bc f21e9a77b71c49bc OK +0123456789ABCDEF 0000000000000000 +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +245946885754369a 245946885754369a OK +FEDCBA9876543210 FFFFFFFFFFFFFFFF +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d +6b5c5a9c5d9e0a5a 6b5c5a9c5d9e0a5a OK + +Deprecated: Function mcrypt_module_open() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic_init() is deprecated in %s%eblowfish.php on line %d + +Deprecated: Function mcrypt_generic() is deprecated in %s%eblowfish.php on line %d 6b77b4d63006dee605b156e27403979358deb9e7154616d959f1652bd5ff92cc diff --git a/ext/mcrypt/tests/bug35496.phpt b/ext/mcrypt/tests/bug35496.phpt index 3add65e02d1eb..b211b05151c85 100644 --- a/ext/mcrypt/tests/bug35496.phpt +++ b/ext/mcrypt/tests/bug35496.phpt @@ -9,6 +9,12 @@ mcrypt_generic($td, "foobar"); mdecrypt_generic($td, "baz"); ?> --EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%ebug35496.php on line 2 + +Deprecated: Function mcrypt_generic() is deprecated in %s%ebug35496.php on line 3 + Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug35496.php on line 3 +Deprecated: Function mdecrypt_generic() is deprecated in %s%ebug35496.php on line 4 + Warning: mdecrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug35496.php on line 4 diff --git a/ext/mcrypt/tests/bug37595.phpt b/ext/mcrypt/tests/bug37595.phpt index 0530f3e813963..a125629c03938 100644 Binary files a/ext/mcrypt/tests/bug37595.phpt and b/ext/mcrypt/tests/bug37595.phpt differ diff --git a/ext/mcrypt/tests/bug41252.phpt b/ext/mcrypt/tests/bug41252.phpt index 481fc54984a55..3900a06fd4a46 100644 --- a/ext/mcrypt/tests/bug41252.phpt +++ b/ext/mcrypt/tests/bug41252.phpt @@ -9,5 +9,9 @@ echo mcrypt_generic($td,'aaaaaaaa'); print "I'm alive!\n"; ?> --EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%ebug41252.php on line 2 + +Deprecated: Function mcrypt_generic() is deprecated in %s%ebug41252.php on line 3 + Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug41252.php on line 3 I'm alive! diff --git a/ext/mcrypt/tests/bug43143.phpt b/ext/mcrypt/tests/bug43143.phpt index 725840f9c5b78..904bfb7003f88 100644 --- a/ext/mcrypt/tests/bug43143.phpt +++ b/ext/mcrypt/tests/bug43143.phpt @@ -17,7 +17,11 @@ echo "END\n"; ?> --EXPECTF-- ECB + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug43143.php on line 5 CFB +Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug43143.php on line 9 + Warning: mcrypt_encrypt(): Encryption mode requires an initialization vector of size 32 in %sbug43143.php on line 9 END diff --git a/ext/mcrypt/tests/bug46010.phpt b/ext/mcrypt/tests/bug46010.phpt index 1f0fe40a3d757..fd3b4b60e50ab 100644 --- a/ext/mcrypt/tests/bug46010.phpt +++ b/ext/mcrypt/tests/bug46010.phpt @@ -12,6 +12,11 @@ var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, $key, "data", MCRYPT_MODE_ECB, ?> --EXPECTF-- +Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug46010.php on line 4 string(16) "f7a2ce11d4002294" + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug46010.php on line 5 string(16) "f7a2ce11d4002294" + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug46010.php on line 6 string(16) "f7a2ce11d4002294" diff --git a/ext/mcrypt/tests/bug49738.phpt b/ext/mcrypt/tests/bug49738.phpt index 8f01bec496991..713f6efa15b14 100644 --- a/ext/mcrypt/tests/bug49738.phpt +++ b/ext/mcrypt/tests/bug49738.phpt @@ -10,4 +10,12 @@ Bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes) echo mcrypt_generic($td, 'aaaaaaaa'); ?> --EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%ebug49738.php on line 2 + +Deprecated: Function mcrypt_generic_init() is deprecated in %s%ebug49738.php on line 3 + +Deprecated: Function mcrypt_generic_deinit() is deprecated in %s%ebug49738.php on line 4 + +Deprecated: Function mcrypt_generic() is deprecated in %s%ebug49738.php on line 5 + Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug49738.php on line 5 diff --git a/ext/mcrypt/tests/bug55169.phpt b/ext/mcrypt/tests/bug55169.phpt index bebcd675c8687..25d5febe06eca 100644 --- a/ext/mcrypt/tests/bug55169.phpt +++ b/ext/mcrypt/tests/bug55169.phpt @@ -16,29 +16,43 @@ for( $i=1; $i<=64; $i = $i*2 ){ ?> --EXPECTF-- Input: 1 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 1 Hex: %x Input: 2 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 2 Hex: %x Input: 4 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 4 Hex: %x Input: 8 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 8 Hex: %x Input: 16 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 16 Hex: %x Input: 32 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 32 Hex: %x Input: 64 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%ebug55169.php on line 4 Length: 64 Hex: %x diff --git a/ext/mcrypt/tests/bug70625.phpt b/ext/mcrypt/tests/bug70625.phpt index e9c0de0be3768..65ab8eb0229c9 100644 --- a/ext/mcrypt/tests/bug70625.phpt +++ b/ext/mcrypt/tests/bug70625.phpt @@ -12,6 +12,9 @@ $plaintext = mcrypt_decrypt(MCRYPT_ARCFOUR, $key, $ciphertext, MCRYPT_MODE_STREA var_dump($plaintext); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug70625.php on line 4 string(14) "d5c9a57023d0f1" + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%ebug70625.php on line 6 string(7) "payload" diff --git a/ext/mcrypt/tests/mcrypt_cbc.phpt b/ext/mcrypt/tests/mcrypt_cbc.phpt index 310c4a88bd6f2..0b60682cef9dc 100644 --- a/ext/mcrypt/tests/mcrypt_cbc.phpt +++ b/ext/mcrypt/tests/mcrypt_cbc.phpt @@ -19,7 +19,16 @@ var_dump(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC)); ?> --EXPECTF-- +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_cbc.php on line 6 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_cbc.php on line 6 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc.php on line 7 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc.php on line 10 PHP Testfest 2008 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc.php on line 13 + Warning: mcrypt_decrypt(): Encryption mode requires an initialization vector of size 16 in %s on line %d bool(false) diff --git a/ext/mcrypt/tests/mcrypt_cbc_3des_decrypt.phpt b/ext/mcrypt/tests/mcrypt_cbc_3des_decrypt.phpt index 939cc57196b86..b306a8a94ede3 100644 --- a/ext/mcrypt/tests/mcrypt_cbc_3des_decrypt.phpt +++ b/ext/mcrypt/tests/mcrypt_cbc_3des_decrypt.phpt @@ -67,19 +67,27 @@ function special_var_dump($str) { key length=8 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 41 + Warning: mcrypt_decrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=20 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 41 + Warning: mcrypt_decrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 41 string(32) "736563726574206d6573736167650000" key length=26 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 41 + Warning: mcrypt_decrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" @@ -87,14 +95,20 @@ string(0) "" iv length=4 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 48 + Warning: mcrypt_decrypt(): Received initialization vector of size 4, but size 8 is required for this encryption mode in %s on line %d string(0) "" iv length=8 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 48 string(32) "659ec947f4dc3a3b9c50de744598d3c8" iv length=9 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cbc_3des_decrypt.php on line 48 + Warning: mcrypt_decrypt(): Received initialization vector of size 9, but size 8 is required for this encryption mode in %s on line %d string(0) "" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_cbc_3des_encrypt.phpt b/ext/mcrypt/tests/mcrypt_cbc_3des_encrypt.phpt index ef662cc383d02..0fea9063df0f8 100644 --- a/ext/mcrypt/tests/mcrypt_cbc_3des_encrypt.phpt +++ b/ext/mcrypt/tests/mcrypt_cbc_3des_encrypt.phpt @@ -50,19 +50,27 @@ foreach ($ivs as $iv) { key length=8 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 28 + Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=20 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 28 + Warning: mcrypt_encrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 28 string(112) "b85e21072239d60c63a80e7c9ae493cb741a1cd407e52f451c5f43a0d103f55a7b62617eb2e44213c2d44462d388bc0b8f119384b12c84ac" key length=26 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 28 + Warning: mcrypt_encrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" @@ -70,14 +78,20 @@ string(0) "" iv length=4 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 35 + Warning: mcrypt_encrypt(): Received initialization vector of size 4, but size 8 is required for this encryption mode in %s on line %d string(0) "" iv length=8 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 35 string(112) "b85e21072239d60c63a80e7c9ae493cb741a1cd407e52f451c5f43a0d103f55a7b62617eb2e44213c2d44462d388bc0b8f119384b12c84ac" iv length=9 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cbc_3des_encrypt.php on line 35 + Warning: mcrypt_encrypt(): Received initialization vector of size 9, but size 8 is required for this encryption mode in %s on line %d string(0) "" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_cfb.phpt b/ext/mcrypt/tests/mcrypt_cfb.phpt index ebbbea7c93a0e..1ff72ab2e088d 100644 --- a/ext/mcrypt/tests/mcrypt_cfb.phpt +++ b/ext/mcrypt/tests/mcrypt_cfb.phpt @@ -18,7 +18,16 @@ echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CFB, $iv)) . "\n" var_dump(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CFB)); --EXPECTF-- +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_cfb.php on line 6 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_cfb.php on line 6 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_cfb.php on line 7 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cfb.php on line 10 PHP Testfest 2008 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_cfb.php on line 13 + Warning: mcrypt_decrypt(): Encryption mode requires an initialization vector of size 16 in %s on line %d bool(false) diff --git a/ext/mcrypt/tests/mcrypt_create_iv.phpt b/ext/mcrypt/tests/mcrypt_create_iv.phpt index 1aa48868b04ba..6faabbf83186b 100644 --- a/ext/mcrypt/tests/mcrypt_create_iv.phpt +++ b/ext/mcrypt/tests/mcrypt_create_iv.phpt @@ -11,7 +11,18 @@ $iv3 = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB) echo strlen($iv1) . "\n"; echo strlen($iv2) . "\n"; echo strlen($iv3) . "\n"; ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_create_iv.php on line 2 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_create_iv.php on line 2 + +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_create_iv.php on line 3 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_create_iv.php on line 3 + +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_create_iv.php on line 4 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_create_iv.php on line 4 16 16 16 diff --git a/ext/mcrypt/tests/mcrypt_decrypt.phpt b/ext/mcrypt/tests/mcrypt_decrypt.phpt index f10757c45d589..03098f0d8e008 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt.phpt @@ -20,10 +20,21 @@ var_dump(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_CBC)); var_dump(mcrypt_decrypt(MCRYPT_BLOWFISH, "FooBar", $enc_data, MCRYPT_MODE_CBC, $iv)); --EXPECTF-- +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_decrypt.php on line 7 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_decrypt.php on line 7 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_decrypt.php on line 8 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt.php on line 11 PHP Testfest 2008 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt.php on line 14 + Warning: mcrypt_decrypt(): Encryption mode requires an initialization vector of size 16 in %s on line %d bool(false) +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt.php on line 16 + Warning: mcrypt_decrypt(): Received initialization vector of size 16, but size 8 is required for this encryption mode in %s on line %d bool(false) diff --git a/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt b/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt index 60af213911b42..cc5996d410c10 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_3des_cbc.phpt @@ -72,19 +72,27 @@ function special_var_dump($str) { key length=8 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 44 + Warning: mcrypt_decrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=20 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 44 + Warning: mcrypt_decrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 44 string(32) "736563726574206d6573736167650000" key length=26 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 44 + Warning: mcrypt_decrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" @@ -92,14 +100,20 @@ string(0) "" iv length=4 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 51 + Warning: mcrypt_decrypt(): Received initialization vector of size 4, but size 8 is required for this encryption mode in %s on line %d string(0) "" iv length=8 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 51 string(32) "659ec947f4dc3a3b9c50de744598d3c8" iv length=9 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_cbc.php on line 51 + Warning: mcrypt_decrypt(): Received initialization vector of size 9, but size 8 is required for this encryption mode in %s on line %d string(0) "" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_decrypt_3des_ecb.phpt b/ext/mcrypt/tests/mcrypt_decrypt_3des_ecb.phpt index c54e6e50986a9..e86a5650fe943 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_3des_ecb.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_3des_ecb.phpt @@ -71,30 +71,44 @@ function special_var_dump($str) { key length=8 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 43 + Warning: mcrypt_decrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=20 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 43 + Warning: mcrypt_decrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 43 string(32) "736563726574206d6573736167650000" key length=26 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 43 + Warning: mcrypt_decrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" --- testing different iv lengths iv length=4 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 50 string(32) "a9298896ed1b7335f8f10f7ff6d7a239" iv length=8 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 50 string(32) "a9298896ed1b7335f8f10f7ff6d7a239" iv length=9 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_3des_ecb.php on line 50 string(32) "a9298896ed1b7335f8f10f7ff6d7a239" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_decrypt_error.phpt b/ext/mcrypt/tests/mcrypt_decrypt_error.phpt index aae42d8389b40..b99b51c96a63e 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_error.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_error.phpt @@ -41,12 +41,15 @@ var_dump( mcrypt_decrypt($cipher, $key, $data) ); -- Testing mcrypt_decrypt() function with more than expected no. of arguments -- +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_error.php on line 19 + Warning: mcrypt_decrypt() expects at most 5 parameters, 6 given in %s on line %d NULL -- Testing mcrypt_decrypt() function with less than expected no. of arguments -- +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_decrypt_error.php on line 26 + Warning: mcrypt_decrypt() expects at least 4 parameters, 3 given in %s on line %d NULL ===DONE=== - diff --git a/ext/mcrypt/tests/mcrypt_decrypt_variation1.phpt b/ext/mcrypt/tests/mcrypt_decrypt_variation1.phpt index 21fda197328bf..37fffad4d70c5 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_variation1.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_variation1.phpt @@ -124,107 +124,132 @@ fclose($fp); *** Testing mcrypt_decrypt() : usage variation *** --int 0-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --int 1-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --int 12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --int -12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float 10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float -10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float 12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float -12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float .5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --empty array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt() expects parameter 1 to be string, array given, %s(%d) NULL --int indexed array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt() expects parameter 1 to be string, array given, %s(%d) NULL --associative array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt() expects parameter 1 to be string, array given, %s(%d) NULL --nested arrays-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt() expects parameter 1 to be string, array given, %s(%d) NULL --uppercase NULL-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --lowercase null-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --lowercase true-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --lowercase false-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --uppercase TRUE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --uppercase FALSE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --empty string DQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --empty string SQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --instance of classWithToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --instance of classWithoutToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt() expects parameter 1 to be string, object given, %s(%d) NULL --undefined var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --unset var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --resource-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation1.php(107) Error: 2 - mcrypt_decrypt() expects parameter 1 to be string, resource given, %s(%d) NULL ===DONE=== - diff --git a/ext/mcrypt/tests/mcrypt_decrypt_variation2.phpt b/ext/mcrypt/tests/mcrypt_decrypt_variation2.phpt index 985029c8ba89f..25cc371f75122 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_variation2.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_variation2.phpt @@ -124,107 +124,132 @@ fclose($fp); *** Testing mcrypt_decrypt() : usage variation *** --int 0-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --int 1-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --int 12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --int -12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --float 10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --float -10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --float 12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --float -12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --float .5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --empty array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt() expects parameter 2 to be string, array given, %s(%d) string(0) "" --int indexed array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt() expects parameter 2 to be string, array given, %s(%d) string(0) "" --associative array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt() expects parameter 2 to be string, array given, %s(%d) string(0) "" --nested arrays-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt() expects parameter 2 to be string, array given, %s(%d) string(0) "" --uppercase NULL-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --lowercase null-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --lowercase true-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --lowercase false-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --uppercase TRUE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --uppercase FALSE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --empty string DQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --empty string SQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --instance of classWithToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --instance of classWithoutToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt() expects parameter 2 to be string, object given, %s(%d) string(0) "" --undefined var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --unset var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt(): Key of size %d not supported by this algorithm. Only keys of size 24 supported, %s(%d) string(0) "" --resource-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation2.php(107) Error: 2 - mcrypt_decrypt() expects parameter 2 to be string, resource given, %s(%d) string(0) "" ===DONE=== - diff --git a/ext/mcrypt/tests/mcrypt_decrypt_variation3.phpt b/ext/mcrypt/tests/mcrypt_decrypt_variation3.phpt index a36f2c7a836b7..caa3635986a8c 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_variation3.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_variation3.phpt @@ -124,87 +124,112 @@ fclose($fp); *** Testing mcrypt_decrypt() : usage variation *** --int 0-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "52833a00168e547f" --int 1-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "82011a0a93098a13" --int 12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "e8b71c21b6acc162" --int -12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "db3c458e975563a8" --float 10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "6ee8764562f25913" --float -10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d63b39fd5f65678e" --float 12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(32) "7712cc4828221be40672239d9c32e742" --float -12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(32) "caa892cb5d28b53c2b75b1e0799427c3" --float .5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "99880c86884385d9" --empty array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) Error: 2 - mcrypt_decrypt() expects parameter 3 to be string, array given, %s(%d) string(0) "" --int indexed array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) Error: 2 - mcrypt_decrypt() expects parameter 3 to be string, array given, %s(%d) string(0) "" --associative array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) Error: 2 - mcrypt_decrypt() expects parameter 3 to be string, array given, %s(%d) string(0) "" --nested arrays-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) Error: 2 - mcrypt_decrypt() expects parameter 3 to be string, array given, %s(%d) string(0) "" --uppercase NULL-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --lowercase null-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --lowercase true-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "82011a0a93098a13" --lowercase false-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --uppercase TRUE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "82011a0a93098a13" --uppercase FALSE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --empty string DQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --empty string SQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --instance of classWithToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(32) "46677e368bc07ef375bd580e0c4b2594" --instance of classWithoutToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) Error: 2 - mcrypt_decrypt() expects parameter 3 to be string, object given, %s(%d) string(0) "" --undefined var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --unset var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) string(16) "d27689f6fd9700f4" --resource-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation3.php(107) Error: 2 - mcrypt_decrypt() expects parameter 3 to be string, resource given, %s(%d) string(0) "" ===DONE=== - diff --git a/ext/mcrypt/tests/mcrypt_decrypt_variation4.phpt b/ext/mcrypt/tests/mcrypt_decrypt_variation4.phpt index 1bb994dcc790e..575ed8e9d7e5f 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_variation4.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_variation4.phpt @@ -124,106 +124,132 @@ fclose($fp); *** Testing mcrypt_decrypt() : usage variation *** --int 0-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --int 1-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --int 12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --int -12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float 10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float -10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float 12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float -12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --float .5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --empty array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt() expects parameter 4 to be string, array given, %s(%d) NULL --int indexed array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt() expects parameter 4 to be string, array given, %s(%d) NULL --associative array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt() expects parameter 4 to be string, array given, %s(%d) NULL --nested arrays-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt() expects parameter 4 to be string, array given, %s(%d) NULL --uppercase NULL-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --lowercase null-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --lowercase true-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --lowercase false-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --uppercase TRUE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --uppercase FALSE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --empty string DQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --empty string SQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --instance of classWithToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --instance of classWithoutToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt() expects parameter 4 to be string, object given, %s(%d) NULL --undefined var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --unset var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt(): Module initialization failed, %s(%d) bool(false) --resource-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation4.php(107) Error: 2 - mcrypt_decrypt() expects parameter 4 to be string, resource given, %s(%d) NULL ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_decrypt_variation5.phpt b/ext/mcrypt/tests/mcrypt_decrypt_variation5.phpt index 0f5093ba886c6..9fd28498d1227 100644 --- a/ext/mcrypt/tests/mcrypt_decrypt_variation5.phpt +++ b/ext/mcrypt/tests/mcrypt_decrypt_variation5.phpt @@ -124,107 +124,132 @@ fclose($fp); *** Testing mcrypt_decrypt() : usage variation *** --int 0-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --int 1-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --int 12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --int -12345-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --float 10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --float -10.5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --float 12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --float -12.3456789000e10-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --float .5-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --empty array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt() expects parameter 5 to be string, array given, %s(%d) string(0) "" --int indexed array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt() expects parameter 5 to be string, array given, %s(%d) string(0) "" --associative array-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt() expects parameter 5 to be string, array given, %s(%d) string(0) "" --nested arrays-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt() expects parameter 5 to be string, array given, %s(%d) string(0) "" --uppercase NULL-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --lowercase null-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --lowercase true-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --lowercase false-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --uppercase TRUE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --uppercase FALSE-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --empty string DQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --empty string SQ-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --instance of classWithToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --instance of classWithoutToString-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt() expects parameter 5 to be string, object given, %s(%d) string(0) "" --undefined var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --unset var-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt(): Received initialization vector of size %d, but size 8 is required for this encryption mode, %s(%d) string(0) "" --resource-- +Error: 8192 - Function mcrypt_decrypt() is deprecated, %s%emcrypt_decrypt_variation5.php(107) Error: 2 - mcrypt_decrypt() expects parameter 5 to be string, resource given, %s(%d) string(0) "" ===DONE=== - diff --git a/ext/mcrypt/tests/mcrypt_ecb.phpt b/ext/mcrypt/tests/mcrypt_ecb.phpt index 33c86bb45d941..625d55880b7e8 100644 --- a/ext/mcrypt/tests/mcrypt_ecb.phpt +++ b/ext/mcrypt/tests/mcrypt_ecb.phpt @@ -18,4 +18,13 @@ echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_ECB, $iv)) . "\n" mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_ECB); --EXPECTF-- +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_ecb.php on line 6 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_ecb.php on line 6 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb.php on line 7 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb.php on line 10 PHP Testfest 2008 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb.php on line 13 diff --git a/ext/mcrypt/tests/mcrypt_ecb_3des_decrypt.phpt b/ext/mcrypt/tests/mcrypt_ecb_3des_decrypt.phpt index 6319fa15d0208..635ca25a55c35 100644 --- a/ext/mcrypt/tests/mcrypt_ecb_3des_decrypt.phpt +++ b/ext/mcrypt/tests/mcrypt_ecb_3des_decrypt.phpt @@ -68,30 +68,44 @@ function special_var_dump($str) { key length=8 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 42 + Warning: mcrypt_decrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=20 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 42 + Warning: mcrypt_decrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 42 string(32) "736563726574206d6573736167650000" key length=26 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 42 + Warning: mcrypt_decrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" --- testing different iv lengths iv length=4 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 49 string(32) "a9298896ed1b7335f8f10f7ff6d7a239" iv length=8 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 49 string(32) "a9298896ed1b7335f8f10f7ff6d7a239" iv length=9 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ecb_3des_decrypt.php on line 49 string(32) "a9298896ed1b7335f8f10f7ff6d7a239" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt b/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt index 0ccf4b70b39cb..68f056c5107c1 100644 --- a/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt +++ b/ext/mcrypt/tests/mcrypt_ecb_3des_encrypt.phpt @@ -53,30 +53,44 @@ foreach ($ivs as $iv) { key length=8 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 31 + Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=20 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 31 + Warning: mcrypt_encrypt(): Key of size 20 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 31 string(112) "923eedcb20e18e3efa466a6ca1b842b34e6ac46aa3690ef739d0d68a26eb64e1a6ad42e7d18312ae8a57ab927e1dc892e5ff56c061864f27" key length=26 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 31 + Warning: mcrypt_encrypt(): Key of size 26 not supported by this algorithm. Only keys of size 24 supported in %s on line %d string(0) "" --- testing different iv lengths iv length=4 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 38 string(112) "440a6f54601969b15e81df09cd381ef585fede5f3620587fd1a949c520aed9f6d10ebbabf2cea3e1f04c9251c2878c0ca37d51c80d490165" iv length=8 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 38 string(112) "440a6f54601969b15e81df09cd381ef585fede5f3620587fd1a949c520aed9f6d10ebbabf2cea3e1f04c9251c2878c0ca37d51c80d490165" iv length=9 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_ecb_3des_encrypt.php on line 38 string(112) "440a6f54601969b15e81df09cd381ef585fede5f3620587fd1a949c520aed9f6d10ebbabf2cea3e1f04c9251c2878c0ca37d51c80d490165" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_enc_get_algorithms_name.phpt b/ext/mcrypt/tests/mcrypt_enc_get_algorithms_name.phpt index 5b0bb01b9ff02..f0ee269a35788 100644 --- a/ext/mcrypt/tests/mcrypt_enc_get_algorithms_name.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_get_algorithms_name.phpt @@ -14,9 +14,28 @@ $td = mcrypt_module_open(MCRYPT_BLOWFISH, '', MCRYPT_MODE_CBC, ''); echo mcrypt_enc_get_algorithms_name($td) . "\n"; $td = mcrypt_module_open('des', '', 'ecb', ''); echo mcrypt_enc_get_algorithms_name($td) . "\n"; ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 2 + +Deprecated: Function mcrypt_enc_get_algorithms_name() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 3 Rijndael-128 + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 4 + +Deprecated: Function mcrypt_enc_get_algorithms_name() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 5 Rijndael-128 + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 6 + +Deprecated: Function mcrypt_enc_get_algorithms_name() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 7 RC2 + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 8 + +Deprecated: Function mcrypt_enc_get_algorithms_name() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 9 Blowfish + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 10 + +Deprecated: Function mcrypt_enc_get_algorithms_name() is deprecated in %s%emcrypt_enc_get_algorithms_name.php on line 11 DES \ No newline at end of file diff --git a/ext/mcrypt/tests/mcrypt_enc_get_block_size.phpt b/ext/mcrypt/tests/mcrypt_enc_get_block_size.phpt index 06f5adda7a7cd..bbdd1de44bce4 100644 --- a/ext/mcrypt/tests/mcrypt_enc_get_block_size.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_get_block_size.phpt @@ -10,7 +10,18 @@ $td = mcrypt_module_open(MCRYPT_3DES, '', MCRYPT_MODE_CBC, ''); var_dump(mcrypt_enc_get_block_size($td)); $td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_get_block_size($td)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_block_size.php on line 2 + +Deprecated: Function mcrypt_enc_get_block_size() is deprecated in %s%emcrypt_enc_get_block_size.php on line 3 int(32) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_block_size.php on line 4 + +Deprecated: Function mcrypt_enc_get_block_size() is deprecated in %s%emcrypt_enc_get_block_size.php on line 5 int(8) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_block_size.php on line 6 + +Deprecated: Function mcrypt_enc_get_block_size() is deprecated in %s%emcrypt_enc_get_block_size.php on line 7 int(1) diff --git a/ext/mcrypt/tests/mcrypt_enc_get_iv_size.phpt b/ext/mcrypt/tests/mcrypt_enc_get_iv_size.phpt index b4f9d6e4b543d..f48a870035eff 100644 --- a/ext/mcrypt/tests/mcrypt_enc_get_iv_size.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_get_iv_size.phpt @@ -10,7 +10,18 @@ $td = mcrypt_module_open(MCRYPT_3DES, '', MCRYPT_MODE_CBC, ''); var_dump(mcrypt_enc_get_iv_size($td)); $td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_get_iv_size($td)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_iv_size.php on line 2 + +Deprecated: Function mcrypt_enc_get_iv_size() is deprecated in %s%emcrypt_enc_get_iv_size.php on line 3 int(32) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_iv_size.php on line 4 + +Deprecated: Function mcrypt_enc_get_iv_size() is deprecated in %s%emcrypt_enc_get_iv_size.php on line 5 int(8) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_iv_size.php on line 6 + +Deprecated: Function mcrypt_enc_get_iv_size() is deprecated in %s%emcrypt_enc_get_iv_size.php on line 7 int(0) diff --git a/ext/mcrypt/tests/mcrypt_enc_get_key_size.phpt b/ext/mcrypt/tests/mcrypt_enc_get_key_size.phpt index 22328e14d670b..08a8e0baf02c9 100644 --- a/ext/mcrypt/tests/mcrypt_enc_get_key_size.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_get_key_size.phpt @@ -10,7 +10,18 @@ $td = mcrypt_module_open(MCRYPT_3DES, '', MCRYPT_MODE_CBC, ''); var_dump(mcrypt_enc_get_key_size($td)); $td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_get_key_size($td)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_key_size.php on line 2 + +Deprecated: Function mcrypt_enc_get_key_size() is deprecated in %s%emcrypt_enc_get_key_size.php on line 3 int(32) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_key_size.php on line 4 + +Deprecated: Function mcrypt_enc_get_key_size() is deprecated in %s%emcrypt_enc_get_key_size.php on line 5 int(24) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_key_size.php on line 6 + +Deprecated: Function mcrypt_enc_get_key_size() is deprecated in %s%emcrypt_enc_get_key_size.php on line 7 int(32) diff --git a/ext/mcrypt/tests/mcrypt_enc_get_mode_name.phpt b/ext/mcrypt/tests/mcrypt_enc_get_mode_name.phpt index 21c41f98cbf27..7abdd78d5cdde 100644 --- a/ext/mcrypt/tests/mcrypt_enc_get_mode_name.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_get_mode_name.phpt @@ -16,10 +16,33 @@ $td = mcrypt_module_open('des', '', 'ecb', ''); echo mcrypt_enc_get_modes_name($td) . "\n"; $td = mcrypt_module_open('des', '', 'cbc', ''); echo mcrypt_enc_get_modes_name($td) . "\n"; ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 2 + +Deprecated: Function mcrypt_enc_get_modes_name() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 3 ECB + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 4 + +Deprecated: Function mcrypt_enc_get_modes_name() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 5 CBC + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 6 + +Deprecated: Function mcrypt_enc_get_modes_name() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 7 STREAM + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 8 + +Deprecated: Function mcrypt_enc_get_modes_name() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 9 OFB + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 10 + +Deprecated: Function mcrypt_enc_get_modes_name() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 11 ECB + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 12 + +Deprecated: Function mcrypt_enc_get_modes_name() is deprecated in %s%emcrypt_enc_get_mode_name.php on line 13 CBC diff --git a/ext/mcrypt/tests/mcrypt_enc_get_supported_key_sizes.phpt b/ext/mcrypt/tests/mcrypt_enc_get_supported_key_sizes.phpt index 0ce1f15cf7ece..8cde780d9ea21 100644 --- a/ext/mcrypt/tests/mcrypt_enc_get_supported_key_sizes.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_get_supported_key_sizes.phpt @@ -7,7 +7,10 @@ mcrypt_enc_get_supported_key_sizes $td = mcrypt_module_open('rijndael-256', '', 'ecb', ''); $var = mcrypt_enc_get_supported_key_sizes($td); var_dump($var); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_get_supported_key_sizes.php on line 2 + +Deprecated: Function mcrypt_enc_get_supported_key_sizes() is deprecated in %s%emcrypt_enc_get_supported_key_sizes.php on line 3 array(3) { [0]=> int(16) diff --git a/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm.phpt b/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm.phpt index 21a0ed2b888f0..fbc86550f962a 100644 --- a/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm.phpt @@ -10,7 +10,18 @@ $td = mcrypt_module_open(MCRYPT_3DES, '', MCRYPT_MODE_CBC, ''); var_dump(mcrypt_enc_is_block_algorithm($td)); $td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_is_block_algorithm($td)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_algorithm.php on line 2 + +Deprecated: Function mcrypt_enc_is_block_algorithm() is deprecated in %s%emcrypt_enc_is_block_algorithm.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_algorithm.php on line 4 + +Deprecated: Function mcrypt_enc_is_block_algorithm() is deprecated in %s%emcrypt_enc_is_block_algorithm.php on line 5 bool(true) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_algorithm.php on line 6 + +Deprecated: Function mcrypt_enc_is_block_algorithm() is deprecated in %s%emcrypt_enc_is_block_algorithm.php on line 7 bool(false) diff --git a/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm_mode.phpt b/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm_mode.phpt index 69c96541752d0..181ca496007b1 100644 --- a/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm_mode.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_is_block_algorithm_mode.phpt @@ -10,7 +10,18 @@ $td = mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, ''); var_dump(mcrypt_enc_is_block_algorithm_mode($td)); $td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_is_block_algorithm_mode($td)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_algorithm_mode.php on line 2 + +Deprecated: Function mcrypt_enc_is_block_algorithm_mode() is deprecated in %s%emcrypt_enc_is_block_algorithm_mode.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_algorithm_mode.php on line 4 + +Deprecated: Function mcrypt_enc_is_block_algorithm_mode() is deprecated in %s%emcrypt_enc_is_block_algorithm_mode.php on line 5 bool(true) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_algorithm_mode.php on line 6 + +Deprecated: Function mcrypt_enc_is_block_algorithm_mode() is deprecated in %s%emcrypt_enc_is_block_algorithm_mode.php on line 7 bool(false) diff --git a/ext/mcrypt/tests/mcrypt_enc_is_block_mode.phpt b/ext/mcrypt/tests/mcrypt_enc_is_block_mode.phpt index 551f7a6975991..e59d11dde4a78 100644 --- a/ext/mcrypt/tests/mcrypt_enc_is_block_mode.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_is_block_mode.phpt @@ -12,8 +12,23 @@ $td = mcrypt_module_open(MCRYPT_ARCFOUR, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_is_block_mode($td)); $td = mcrypt_module_open(MCRYPT_WAKE, '', MCRYPT_MODE_STREAM, ''); var_dump(mcrypt_enc_is_block_mode($td)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 2 + +Deprecated: Function mcrypt_enc_is_block_mode() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 4 + +Deprecated: Function mcrypt_enc_is_block_mode() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 5 bool(true) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 6 + +Deprecated: Function mcrypt_enc_is_block_mode() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 7 bool(false) + +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 8 + +Deprecated: Function mcrypt_enc_is_block_mode() is deprecated in %s%emcrypt_enc_is_block_mode.php on line 9 bool(false) \ No newline at end of file diff --git a/ext/mcrypt/tests/mcrypt_enc_self_test.phpt b/ext/mcrypt/tests/mcrypt_enc_self_test.phpt index a161e0e02befb..2297b969c1033 100644 --- a/ext/mcrypt/tests/mcrypt_enc_self_test.phpt +++ b/ext/mcrypt/tests/mcrypt_enc_self_test.phpt @@ -6,5 +6,8 @@ mcrypt_enc_self_test string(3) "cbc" diff --git a/ext/mcrypt/tests/mcrypt_module_get_algo_block_size.phpt b/ext/mcrypt/tests/mcrypt_module_get_algo_block_size.phpt index 93db98241aa51..2ed4dbb7fd548 100644 --- a/ext/mcrypt/tests/mcrypt_module_get_algo_block_size.phpt +++ b/ext/mcrypt/tests/mcrypt_module_get_algo_block_size.phpt @@ -11,10 +11,21 @@ var_dump(mcrypt_module_get_algo_block_size(MCRYPT_XTEA)); var_dump(mcrypt_module_get_algo_block_size(MCRYPT_CAST_256)); var_dump(mcrypt_module_get_algo_block_size(MCRYPT_BLOWFISH)); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_get_algo_block_size() is deprecated in %s%emcrypt_module_get_algo_block_size.php on line 2 int(32) + +Deprecated: Function mcrypt_module_get_algo_block_size() is deprecated in %s%emcrypt_module_get_algo_block_size.php on line 3 int(24) + +Deprecated: Function mcrypt_module_get_algo_block_size() is deprecated in %s%emcrypt_module_get_algo_block_size.php on line 4 int(8) + +Deprecated: Function mcrypt_module_get_algo_block_size() is deprecated in %s%emcrypt_module_get_algo_block_size.php on line 5 int(8) + +Deprecated: Function mcrypt_module_get_algo_block_size() is deprecated in %s%emcrypt_module_get_algo_block_size.php on line 6 int(16) + +Deprecated: Function mcrypt_module_get_algo_block_size() is deprecated in %s%emcrypt_module_get_algo_block_size.php on line 7 int(8) diff --git a/ext/mcrypt/tests/mcrypt_module_get_algo_key_size.phpt b/ext/mcrypt/tests/mcrypt_module_get_algo_key_size.phpt index 35e4721055366..5ab791d772f09 100644 --- a/ext/mcrypt/tests/mcrypt_module_get_algo_key_size.phpt +++ b/ext/mcrypt/tests/mcrypt_module_get_algo_key_size.phpt @@ -11,10 +11,21 @@ var_dump(mcrypt_module_get_algo_key_size(MCRYPT_XTEA)); var_dump(mcrypt_module_get_algo_key_size(MCRYPT_CAST_256)); var_dump(mcrypt_module_get_algo_key_size(MCRYPT_BLOWFISH)); ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_get_algo_key_size() is deprecated in %s%emcrypt_module_get_algo_key_size.php on line 2 int(32) + +Deprecated: Function mcrypt_module_get_algo_key_size() is deprecated in %s%emcrypt_module_get_algo_key_size.php on line 3 int(32) + +Deprecated: Function mcrypt_module_get_algo_key_size() is deprecated in %s%emcrypt_module_get_algo_key_size.php on line 4 int(128) + +Deprecated: Function mcrypt_module_get_algo_key_size() is deprecated in %s%emcrypt_module_get_algo_key_size.php on line 5 int(16) + +Deprecated: Function mcrypt_module_get_algo_key_size() is deprecated in %s%emcrypt_module_get_algo_key_size.php on line 6 int(32) + +Deprecated: Function mcrypt_module_get_algo_key_size() is deprecated in %s%emcrypt_module_get_algo_key_size.php on line 7 int(56) diff --git a/ext/mcrypt/tests/mcrypt_module_get_supported_key_sizes.phpt b/ext/mcrypt/tests/mcrypt_module_get_supported_key_sizes.phpt index bf45bb488e600..c850784b8a939 100644 --- a/ext/mcrypt/tests/mcrypt_module_get_supported_key_sizes.phpt +++ b/ext/mcrypt/tests/mcrypt_module_get_supported_key_sizes.phpt @@ -6,7 +6,8 @@ mcrypt_module_get_supported_key_sizes int(16) @@ -15,5 +16,7 @@ array(3) { [2]=> int(32) } + +Deprecated: Function mcrypt_module_get_supported_key_sizes() is deprecated in %s%emcrypt_module_get_supported_key_sizes.php on line 3 array(0) { } \ No newline at end of file diff --git a/ext/mcrypt/tests/mcrypt_module_is_block_algorithm.phpt b/ext/mcrypt/tests/mcrypt_module_is_block_algorithm.phpt index 2cfc87ddf5010..27b965b41fd05 100644 --- a/ext/mcrypt/tests/mcrypt_module_is_block_algorithm.phpt +++ b/ext/mcrypt/tests/mcrypt_module_is_block_algorithm.phpt @@ -8,8 +8,15 @@ var_dump(mcrypt_module_is_block_algorithm(MCRYPT_RIJNDAEL_128)); var_dump(mcrypt_module_is_block_algorithm(MCRYPT_DES)); var_dump(mcrypt_module_is_block_algorithm(MCRYPT_WAKE)); var_dump(mcrypt_module_is_block_algorithm(MCRYPT_XTEA)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_is_block_algorithm() is deprecated in %s%emcrypt_module_is_block_algorithm.php on line 2 bool(true) + +Deprecated: Function mcrypt_module_is_block_algorithm() is deprecated in %s%emcrypt_module_is_block_algorithm.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_is_block_algorithm() is deprecated in %s%emcrypt_module_is_block_algorithm.php on line 4 bool(false) + +Deprecated: Function mcrypt_module_is_block_algorithm() is deprecated in %s%emcrypt_module_is_block_algorithm.php on line 5 bool(true) \ No newline at end of file diff --git a/ext/mcrypt/tests/mcrypt_module_is_block_algorithm_mode.phpt b/ext/mcrypt/tests/mcrypt_module_is_block_algorithm_mode.phpt index 292455141401a..57d06f4df7be0 100644 --- a/ext/mcrypt/tests/mcrypt_module_is_block_algorithm_mode.phpt +++ b/ext/mcrypt/tests/mcrypt_module_is_block_algorithm_mode.phpt @@ -8,8 +8,15 @@ var_dump(mcrypt_module_is_block_algorithm_mode(MCRYPT_MODE_CBC)); var_dump(mcrypt_module_is_block_algorithm_mode(MCRYPT_MODE_ECB)); var_dump(mcrypt_module_is_block_algorithm_mode(MCRYPT_MODE_STREAM)); var_dump(mcrypt_module_is_block_algorithm_mode(MCRYPT_MODE_OFB)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_is_block_algorithm_mode() is deprecated in %s%emcrypt_module_is_block_algorithm_mode.php on line 2 bool(true) + +Deprecated: Function mcrypt_module_is_block_algorithm_mode() is deprecated in %s%emcrypt_module_is_block_algorithm_mode.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_is_block_algorithm_mode() is deprecated in %s%emcrypt_module_is_block_algorithm_mode.php on line 4 bool(false) + +Deprecated: Function mcrypt_module_is_block_algorithm_mode() is deprecated in %s%emcrypt_module_is_block_algorithm_mode.php on line 5 bool(true) \ No newline at end of file diff --git a/ext/mcrypt/tests/mcrypt_module_is_block_mode.phpt b/ext/mcrypt/tests/mcrypt_module_is_block_mode.phpt index 662279f596ae6..117c1dd59340e 100644 --- a/ext/mcrypt/tests/mcrypt_module_is_block_mode.phpt +++ b/ext/mcrypt/tests/mcrypt_module_is_block_mode.phpt @@ -9,9 +9,18 @@ var_dump(mcrypt_module_is_block_mode(MCRYPT_MODE_ECB)); var_dump(mcrypt_module_is_block_mode(MCRYPT_MODE_STREAM)); var_dump(mcrypt_module_is_block_mode(MCRYPT_MODE_NOFB)); var_dump(mcrypt_module_is_block_mode(MCRYPT_MODE_OFB)); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_is_block_mode() is deprecated in %s%emcrypt_module_is_block_mode.php on line 2 bool(true) + +Deprecated: Function mcrypt_module_is_block_mode() is deprecated in %s%emcrypt_module_is_block_mode.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_is_block_mode() is deprecated in %s%emcrypt_module_is_block_mode.php on line 4 bool(false) + +Deprecated: Function mcrypt_module_is_block_mode() is deprecated in %s%emcrypt_module_is_block_mode.php on line 5 bool(false) + +Deprecated: Function mcrypt_module_is_block_mode() is deprecated in %s%emcrypt_module_is_block_mode.php on line 6 bool(false) \ No newline at end of file diff --git a/ext/mcrypt/tests/mcrypt_module_open.phpt b/ext/mcrypt/tests/mcrypt_module_open.phpt index 92f0d555b3505..f8a10616a3d74 100644 --- a/ext/mcrypt/tests/mcrypt_module_open.phpt +++ b/ext/mcrypt/tests/mcrypt_module_open.phpt @@ -8,7 +8,10 @@ var_dump(mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, '')); mcrypt_module_open('', '', '', ''); --EXPECTF-- +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_module_open.php on line 2 resource(%d) of type (mcrypt) +Deprecated: Function mcrypt_module_open() is deprecated in %s%emcrypt_module_open.php on line 3 + Warning: mcrypt_module_open(): Could not open encryption module in %s on line %d diff --git a/ext/mcrypt/tests/mcrypt_module_self_test.phpt b/ext/mcrypt/tests/mcrypt_module_self_test.phpt index cf07bfe6a4bca..aa53c32173ab3 100644 --- a/ext/mcrypt/tests/mcrypt_module_self_test.phpt +++ b/ext/mcrypt/tests/mcrypt_module_self_test.phpt @@ -7,7 +7,12 @@ mcrypt_module_self_test var_dump(mcrypt_module_self_test(MCRYPT_RIJNDAEL_128)); var_dump(mcrypt_module_self_test(MCRYPT_RC2)); var_dump(mcrypt_module_self_test('')); ---EXPECT-- +--EXPECTF-- +Deprecated: Function mcrypt_module_self_test() is deprecated in %s%emcrypt_module_self_test.php on line 2 bool(true) + +Deprecated: Function mcrypt_module_self_test() is deprecated in %s%emcrypt_module_self_test.php on line 3 bool(true) + +Deprecated: Function mcrypt_module_self_test() is deprecated in %s%emcrypt_module_self_test.php on line 4 bool(false) diff --git a/ext/mcrypt/tests/mcrypt_ofb.phpt b/ext/mcrypt/tests/mcrypt_ofb.phpt index 5d87fcd855943..76f7fe61c835d 100644 --- a/ext/mcrypt/tests/mcrypt_ofb.phpt +++ b/ext/mcrypt/tests/mcrypt_ofb.phpt @@ -18,6 +18,15 @@ echo trim(mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_OFB, $iv)) . "\n" mcrypt_decrypt($cipher, $key, $enc_data, MCRYPT_MODE_OFB); --EXPECTF-- +Deprecated: Function mcrypt_get_iv_size() is deprecated in %s%emcrypt_ofb.php on line 6 + +Deprecated: Function mcrypt_create_iv() is deprecated in %s%emcrypt_ofb.php on line 6 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ofb.php on line 7 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ofb.php on line 10 PHP Testfest 2008 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_ofb.php on line 13 + Warning: mcrypt_decrypt(): Encryption mode requires an initialization vector of size 16 in %s on line %d diff --git a/ext/mcrypt/tests/mcrypt_rijndael128_128BitKey.phpt b/ext/mcrypt/tests/mcrypt_rijndael128_128BitKey.phpt index 7889f67851f8f..d9e7d96bbcf46 100644 --- a/ext/mcrypt/tests/mcrypt_rijndael128_128BitKey.phpt +++ b/ext/mcrypt/tests/mcrypt_rijndael128_128BitKey.phpt @@ -72,44 +72,62 @@ foreach ($ivs as $iv) { key length=0 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45 + Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" key length=0 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45 + Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" key length=8 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45 + Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" key length=16 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 45 string(128) "dc8f957ec530acf10cd95ba7da7b6405380fe19a2941e9a8de54680512f18491bc374e5464885ae6c2ae2aa7a6cdd2fbe12a06bbc4bd59dbbfaa15f09044f101" --- testing different iv lengths iv length=0 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53 + Warning: mcrypt_decrypt(): Received initialization vector of size 0, but size 16 is required for this encryption mode in %s on line %d string(0) "" iv length=0 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53 + Warning: mcrypt_decrypt(): Received initialization vector of size 0, but size 16 is required for this encryption mode in %s on line %d string(0) "" iv length=8 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53 + Warning: mcrypt_decrypt(): Received initialization vector of size 8, but size 16 is required for this encryption mode in %s on line %d string(0) "" iv length=16 + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53 string(32) "42adc8c0db19473f2c684ff2d6e828a5" iv length=17 +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_128BitKey.php on line 53 + Warning: mcrypt_decrypt(): Received initialization vector of size 17, but size 16 is required for this encryption mode in %s on line %d string(0) "" ===DONE=== diff --git a/ext/mcrypt/tests/mcrypt_rijndael128_256BitKey.phpt b/ext/mcrypt/tests/mcrypt_rijndael128_256BitKey.phpt index 672e1ee1b7d55..7fef8af36d4eb 100644 --- a/ext/mcrypt/tests/mcrypt_rijndael128_256BitKey.phpt +++ b/ext/mcrypt/tests/mcrypt_rijndael128_256BitKey.phpt @@ -63,33 +63,53 @@ foreach ($keys as $key) { key length=20 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 43 + Warning: mcrypt_encrypt(): Key of size 20 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 45 + Warning: mcrypt_decrypt(): Key of size 20 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" key length=24 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 43 string(128) "8ecdf1ed5742aff16ef34c819c8d22c707c54f4d9ffc18e5f6ab79fe68c25705351e2c001a0b9f29e5def67570ca9da644efb69a8bb97940cb4bec094dae8bb5" + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 45 string(128) "546869732069732074686520736563726574206d657373616765207768696368206d75737420626520656e637279707465640000000000000000000000000000" key length=30 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 43 + Warning: mcrypt_encrypt(): Key of size 30 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 45 + Warning: mcrypt_decrypt(): Key of size 30 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" key length=32 + +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 43 string(128) "f23bc103bfd0859a8318acee6d96e5f43dff68f3cdeae817a1e77c33492e32bdb82c5f660fcd1a2bfda70d9de4d5d8028ce179a9e2f7f9ee7dd61c7b4b409e95" + +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 45 string(128) "546869732069732074686520736563726574206d657373616765207768696368206d75737420626520656e637279707465640000000000000000000000000000" key length=40 +Deprecated: Function mcrypt_encrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 43 + Warning: mcrypt_encrypt(): Key of size 40 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" +Deprecated: Function mcrypt_decrypt() is deprecated in %s%emcrypt_rijndael128_256BitKey.php on line 45 + Warning: mcrypt_decrypt(): Key of size 40 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in %s on line %d string(0) "" ===DONE===