Skip to content

Commit

Permalink
Revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp committed May 18, 2008
1 parent 472b883 commit fbc29e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions ext/mcrypt/mcrypt.c
Expand Up @@ -589,12 +589,7 @@ PHP_FUNCTION(mcrypt_enc_get_supported_key_sizes)
PHP_FUNCTION(mcrypt_enc_self_test)
{
MCRYPT_GET_TD_ARG

if (mcrypt_enc_self_test(pm->td) == 0) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
RETURN_LONG(mcrypt_enc_self_test(pm->td));
}
/* }}} */

Expand Down
2 changes: 1 addition & 1 deletion ext/mcrypt/tests/mcrypt_enc_self_test.phpt
Expand Up @@ -7,4 +7,4 @@ mcrypt_enc_self_test
$td = mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, '');
var_dump(mcrypt_enc_self_test($td));
--EXPECT--
bool(true)
int(0)

0 comments on commit fbc29e2

Please sign in to comment.