PHP Mcrypt扩展未通过所有测试

时间:2014-09-12 16:07:17

标签: php mcrypt

我整个上午都在搜索Google和StackOverflow以获得答案,但我发现的任何内容都没有解决这个问题......

我使用PHP 5.4.30 CLI运行Mac OS X 10.9。

我试图在我的MAMP环境中为PHP 5.6启用mcrypt扩展。出于某种原因,100%的测试(make test)都失败了。这就是我的工作:

cd /Applications/MAMP/bin/php/php-5.6/ext/mcrypt
phpize
./configure
make
make test

我在结果的顶部看到了这个错误:

PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

所以我查看了php.ini的副本,但找不到extension=mcrypt.so,所以我不知道它为什么会失败。

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   28
---------------------------------------------------------------------

Number of tests :   75                75
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   75 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    7 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test for blowfish compatibility [tests/blowfish.phpt]
Bug #35496 (Crash in mcrypt_generic()/mdecrypt_generic() without proper init). [tests/bug35496.phpt]
Bug #37595 (mcrypt_generic calculates data length in wrong way) [tests/bug37595.phpt]
Bug #41252 (Calling mcrypt_generic without first calling mcrypt_generic_init crashes) [tests/bug41252.phpt]
Bug #43143 (Warning about empty IV with MCRYPT_MODE_ECB) [tests/bug43143.phpt]
Bug #46010 (warnings incorrectly generated for iv in ecb mode) [tests/bug46010.phpt]
Bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes) [tests/bug49738.phpt]
mcrypt_create_iv https://bugs.php.net/bug.php?id=55169 [tests/bug55169.phpt]
RFC 2144 test vectors for CAST-128 in ECB mode (bug #62102) [tests/bug62102_rfc2144.phpt]
Bug #8040 (MCRYPT_MODE_* do not seem to exist) [tests/bug8040.phpt]
mcrypt_cbc [tests/mcrypt_cbc.phpt]
Test mcrypt_cbc() function : basic functionality [tests/mcrypt_cbc_3des_decrypt.phpt]
Test mcrypt_cbc() function : basic functionality [tests/mcrypt_cbc_3des_encrypt.phpt]
Test mcrypt_cbc() function : error conditions [tests/mcrypt_cbc_error.phpt]
Test mcrypt_cbc() function : usage variation [tests/mcrypt_cbc_variation1.phpt]
Test mcrypt_cbc() function : usage variation [tests/mcrypt_cbc_variation2.phpt]
Test mcrypt_cbc() function : usage variation [tests/mcrypt_cbc_variation3.phpt]
Test mcrypt_cbc() function : usage variation [tests/mcrypt_cbc_variation4.phpt]
Test mcrypt_cbc() function : usage variation [tests/mcrypt_cbc_variation5.phpt]
mcrypt_cfb [tests/mcrypt_cfb.phpt]
mcrypt_create_iv [tests/mcrypt_create_iv.phpt]
mcrypt_decrypt [tests/mcrypt_decrypt.phpt]
Test mcrypt_decrypt() function : basic functionality [tests/mcrypt_decrypt_3des_cbc.phpt]
Test mcrypt_decrypt() function : basic functionality [tests/mcrypt_decrypt_3des_ecb.phpt]
Test mcrypt_decrypt() function : error conditions [tests/mcrypt_decrypt_error.phpt]
Test mcrypt_decrypt() function : usage variation [tests/mcrypt_decrypt_variation1.phpt]
Test mcrypt_decrypt() function : usage variation [tests/mcrypt_decrypt_variation2.phpt]
Test mcrypt_decrypt() function : usage variation [tests/mcrypt_decrypt_variation3.phpt]
Test mcrypt_decrypt() function : usage variation [tests/mcrypt_decrypt_variation4.phpt]
Test mcrypt_decrypt() function : usage variation [tests/mcrypt_decrypt_variation5.phpt]
mcrypt_ecb [tests/mcrypt_ecb.phpt]
Test mcrypt_cbc() function : basic functionality [tests/mcrypt_ecb_3des_decrypt.phpt]
Test mcrypt_ecb() function : basic functionality [tests/mcrypt_ecb_3des_encrypt.phpt]
Test mcrypt_ecb() function : error conditions [tests/mcrypt_ecb_error.phpt]
Test mcrypt_ecb() function : usage variation [tests/mcrypt_ecb_variation1.phpt]
Test mcrypt_ecb() function : usage variation [tests/mcrypt_ecb_variation2.phpt]
Test mcrypt_ecb() function : usage variation [tests/mcrypt_ecb_variation3.phpt]
Test mcrypt_ecb() function : usage variation [tests/mcrypt_ecb_variation4.phpt]
Test mcrypt_ecb() function : usage variation [tests/mcrypt_ecb_variation5.phpt]
mcrypt_enc_get_algorithms_name [tests/mcrypt_enc_get_algorithms_name.phpt]
mcrypt_enc_get_block_size [tests/mcrypt_enc_get_block_size.phpt]
mcrypt_enc_get_iv_size [tests/mcrypt_enc_get_iv_size.phpt]
mcrypt_enc_get_key_size [tests/mcrypt_enc_get_key_size.phpt]
mcrypt_enc_get_modes_name [tests/mcrypt_enc_get_mode_name.phpt]
mcrypt_enc_get_supported_key_sizes [tests/mcrypt_enc_get_supported_key_sizes.phpt]
mcrypt_enc_is_block_algorithm [tests/mcrypt_enc_is_block_algorithm.phpt]
mcrypt_enc_is_block_algorithm_mode [tests/mcrypt_enc_is_block_algorithm_mode.phpt]
mcrypt_enc_is_block_mode [tests/mcrypt_enc_is_block_mode.phpt]
mcrypt_enc_self_test [tests/mcrypt_enc_self_test.phpt]
Test mcrypt_encrypt() function : TripleDES functionality [tests/mcrypt_encrypt_3des_cbc.phpt]
Test mcrypt_encrypt() function : TripleDES functionality [tests/mcrypt_encrypt_3des_ecb.phpt]
Test mcrypt_encrypt() function : error conditions [tests/mcrypt_encrypt_error.phpt]
Test mcrypt_encrypt() function : usage variation - different types for cipher [tests/mcrypt_encrypt_variation1.phpt]
Test mcrypt_encrypt() function : usage variation [tests/mcrypt_encrypt_variation2.phpt]
Test mcrypt_encrypt() function : usage variation [tests/mcrypt_encrypt_variation3.phpt]
Test mcrypt_encrypt() function : usage variation [tests/mcrypt_encrypt_variation4.phpt]
Test mcrypt_encrypt() function : usage variation [tests/mcrypt_encrypt_variation5.phpt]
mcrypt filters [tests/mcrypt_filters.phpt]
mcrypt_get_block_size [tests/mcrypt_get_block_size.phpt]
mcrypt_get_cipher_name [tests/mcrypt_get_cipher_name.phpt]
mcrypt_enc_get_iv_size [tests/mcrypt_get_iv_size.phpt]
mcrypt_get_key_size [tests/mcrypt_get_key_size.phpt]
mcrypt_list_algorithms [tests/mcrypt_list_algorithms.phpt]
mcrypt_list_modes [tests/mcrypt_list_modes.phpt]
mcrypt_module_get_algo_block_size [tests/mcrypt_module_get_algo_block_size.phpt]
mcrypt_module_get_algo_key_size [tests/mcrypt_module_get_algo_key_size.phpt]
mcrypt_module_get_supported_key_sizes [tests/mcrypt_module_get_supported_key_sizes.phpt]
mcrypt_module_is_block_algorithm [tests/mcrypt_module_is_block_algorithm.phpt]
mcrypt_module_is_block_algorithm_mode [tests/mcrypt_module_is_block_algorithm_mode.phpt]
mcrypt_module_is_block_mode [tests/mcrypt_module_is_block_mode.phpt]
mcrypt_module_open [tests/mcrypt_module_open.phpt]
mcrypt_module_self_test [tests/mcrypt_module_self_test.phpt]
mcrypt_ofb [tests/mcrypt_ofb.phpt]
Test mcrypt_encrypt() function : AES functionality [tests/mcrypt_rijndael128_128BitKey.phpt]
Test mcrypt_encrypt() function : AES functionality [tests/mcrypt_rijndael128_256BitKey.phpt]
=====================================================================

0 个答案:

没有答案