ID: 14690 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: mcrypt related Operating System: Linux PHP Version: 4.1.0 New Comment:
mcrypt_module_self_test('test','test'); Previous Comments: ------------------------------------------------------------------------ [2001-12-25 11:45:39] [EMAIL PROTECTED] Do you have a reproducing script for me? regards, Derick ------------------------------------------------------------------------ [2001-12-25 10:02:52] [EMAIL PROTECTED] mcrypt_module_self_test, mcrypt_module_is_block_algorithm_mode, mcrypt_module_is_block_algorithm mcrypt_module_is_block_mode mcrypt_module_get_algo_block_size mcrypt_module_get_algo_key_size and all other who use MCRYPT_GET_MODE_DIR_ARGS we have segmentation if use it with second argument(module|algorithm dir). I thikg that this problem in line marked with '*': switch (argc) { \ case 2: \ * lib_dir_s = Z_STRVAL_PP(lib_dir);\ if (zend_get_parameters_ex(2, &arg1, &lib_dir) == FAILURE)\ {\ WRONG_PARAM_COUNT;\ }\ convert_to_string_ex (lib_dir);\ break;\ Patch: --- ext/mcrypt/mcrypt.c.old Tue Dec 25 15:27:39 2001 +++ ext/mcrypt/mcrypt.c Tue Dec 25 15:27:49 2001 @@ -211 +210,0 @@ - lib_dir_s = Z_STRVAL_PP(lib_dir); \ @@ -216,0 +216 @@ + lib_dir_s = Z_STRVAL_PP(lib_dir); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14690&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]