cvs: php-src /ext/mcrypt mcrypt.c /ext/mcrypt/tests mcrypt_enc_self_test.phpt
| From: | David Soria Parra | Date: | Sun, 18 May 2008 19:52:46 +0000 |
| Subject: | cvs: php-src /ext/mcrypt mcrypt.c /ext/mcrypt/tests mcrypt_enc_self_test.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-50034@lists.php.net to get a copy of this message | ||
dsp Sun May 18 19:52:46 2008 UTC
Modified files:
/php-src/ext/mcrypt mcrypt.c
/php-src/ext/mcrypt/tests mcrypt_enc_self_test.phpt
Log:
Revert.
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.110&r2=1.111&diff_format=u
Index: php-src/ext/mcrypt/mcrypt.c
diff -u php-src/ext/mcrypt/mcrypt.c:1.110 php-src/ext/mcrypt/mcrypt.c:1.111
--- php-src/ext/mcrypt/mcrypt.c:1.110 Sun May 18 17:15:08 2008
+++ php-src/ext/mcrypt/mcrypt.c Sun May 18 19:52:46 2008
@@ -16,7 +16,7 @@
| Derick Rethans <derick@derickrethans.nl> |
+----------------------------------------------------------------------+
*/
-/* $Id: mcrypt.c,v 1.110 2008/05/18 17:15:08 dsp Exp $ */
+/* $Id: mcrypt.c,v 1.111 2008/05/18 19:52:46 dsp Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -476,12 +476,7 @@
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));
}
/* }}} */
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/tests/mcrypt_enc_self_test.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/mcrypt/tests/mcrypt_enc_self_test.phpt
diff -u php-src/ext/mcrypt/tests/mcrypt_enc_self_test.phpt:1.2
php-src/ext/mcrypt/tests/mcrypt_enc_self_test.phpt:1.3
--- php-src/ext/mcrypt/tests/mcrypt_enc_self_test.phpt:1.2 Sun May 18 17:15:08 2008
+++ php-src/ext/mcrypt/tests/mcrypt_enc_self_test.phpt Sun May 18 19:52:46 2008
@@ -7,4 +7,4 @@
$td = mcrypt_module_open(MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, '');
var_dump(mcrypt_enc_self_test($td));
--EXPECT--
-bool(true)
+int(0)
\ No newline at end of file