1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
This commit is contained in:
David Soria Parra
2008-05-18 19:48:40 +00:00
parent 472b883cc6
commit fbc29e2848
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -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));
}
/* }}} */
+1 -1
View File
@@ -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)