cvs: php-src(PHP_5_2) /ext/mcrypt/tests bug41252.phpt
| From: | Derick Rethans | Date: | Tue, 01 May 2007 16:04:33 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/mcrypt/tests bug41252.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44117@lists.php.net to get a copy of this message | ||
derick Tue May 1 16:04:33 2007 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/mcrypt/tests bug41252.phpt
Log:
- MFH: Added test case for bug #41252.
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/tests/bug41252.phpt?view=markup&rev=1.1
Index: php-src/ext/mcrypt/tests/bug41252.phpt
+++ php-src/ext/mcrypt/tests/bug41252.phpt
--TEST--
Bug #41252 (Calling mcrypt_generic without first calling mcrypt_generic_init crashes)
--SKIPIF--
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
--FILE--
<?php
$td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, '');
echo mcrypt_generic($td,'aaaaaaaa');
print "I'm alive!\n";
?>
--EXPECTF--
Warning: mcrypt_generic(): Operation disallowed prior to mcrypt_generic_init(). in %sbug41252.php on
line 3
I'm alive!