diff options
author | Nikita Popov <nikic@php.net> | 2012-08-13 20:29:55 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2012-08-13 20:30:53 +0200 |
commit | 544f5ad35bfe8351ea3f0821a61d83ce9300457d (patch) | |
tree | 929e0a1a31165d1b015827531f7610503ddbcf26 /ext/mcrypt/tests/mcrypt_ecb_variation1.phpt | |
parent | baea290b6c0843afb23bf9ea2979a8de15a406ce (diff) | |
download | php-git-544f5ad35bfe8351ea3f0821a61d83ce9300457d.tar.gz |
Fix mcrypt_ecb tests after deprecation
Diffstat (limited to 'ext/mcrypt/tests/mcrypt_ecb_variation1.phpt')
-rw-r--r-- | ext/mcrypt/tests/mcrypt_ecb_variation1.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mcrypt/tests/mcrypt_ecb_variation1.phpt b/ext/mcrypt/tests/mcrypt_ecb_variation1.phpt index 282a0cce1d..7271deec13 100644 --- a/ext/mcrypt/tests/mcrypt_ecb_variation1.phpt +++ b/ext/mcrypt/tests/mcrypt_ecb_variation1.phpt @@ -8,6 +8,8 @@ if (!extension_loaded("mcrypt")) { ?> --FILE-- <?php +error_reporting(E_ALL & ~E_DEPRECATED); + /* Prototype : string mcrypt_ecb(string cipher, string key, string data, int mode, string iv) * Description: ECB crypt/decrypt data using key key with cipher cipher starting with iv * Source code: ext/mcrypt/mcrypt.c @@ -18,7 +20,7 @@ echo "*** Testing mcrypt_ecb() : usage variation ***\n"; // Define error handler function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { - if (error_reporting() != 0) { + if ($err_no & error_reporting()) { // report non-silenced errors echo "Error: $err_no - $err_msg, $filename($linenum)\n"; } |