diff options
| author | David Soria Parra <dsp@php.net> | 2008-05-18 17:08:56 +0000 |
|---|---|---|
| committer | David Soria Parra <dsp@php.net> | 2008-05-18 17:08:56 +0000 |
| commit | 472b883cc6834f3791fe037f69ec87c635d44d0c (patch) | |
| tree | 5c3cb4eff91b7dc70db81a5ed7ef48d1eac30aab /ext/mcrypt/mcrypt.c | |
| parent | d90f689d73367c2134b847030007ec55999db467 (diff) | |
| download | php-git-472b883cc6834f3791fe037f69ec87c635d44d0c.tar.gz | |
Make mcrypt_enc_self_test() return value compatible with documentation and mcrypt _module_self_test()
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
| -rw-r--r-- | ext/mcrypt/mcrypt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 7cd8668918..78e7d6f4fd 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -589,7 +589,12 @@ PHP_FUNCTION(mcrypt_enc_get_supported_key_sizes) PHP_FUNCTION(mcrypt_enc_self_test) { MCRYPT_GET_TD_ARG - RETURN_LONG(mcrypt_enc_self_test(pm->td)); + + if (mcrypt_enc_self_test(pm->td) == 0) { + RETURN_TRUE; + } else { + RETURN_FALSE; + } } /* }}} */ |
