diff options
Diffstat (limited to 'ext/mcrypt/tests/mcrypt_ecb_variation4.phpt')
-rw-r--r-- | ext/mcrypt/tests/mcrypt_ecb_variation4.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mcrypt/tests/mcrypt_ecb_variation4.phpt b/ext/mcrypt/tests/mcrypt_ecb_variation4.phpt index 599b4fbe70..e52040e295 100644 --- a/ext/mcrypt/tests/mcrypt_ecb_variation4.phpt +++ b/ext/mcrypt/tests/mcrypt_ecb_variation4.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"; } |