diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-15 01:40:36 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-15 01:40:36 +0000 |
| commit | b997390e1d2c49c88d75c3a28572ff42fadd8d57 (patch) | |
| tree | d6128dffd6150117396e9df8dda85a3e88386f64 /ext/mcrypt/mcrypt.c | |
| parent | ed6725c69514a1044d356cfc40d6944ebfdae3a2 (diff) | |
| download | php-git-b997390e1d2c49c88d75c3a28572ff42fadd8d57.tar.gz | |
use constant
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
| -rw-r--r-- | ext/mcrypt/mcrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 12242ed017..c5c8c5f0fc 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -1242,7 +1242,7 @@ PHP_FUNCTION(mcrypt_create_iv) return; } - if (size <= 0 || size >= 2147483647) { + if (size <= 0 || size >= INT_MAX) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can not create an IV with a size of less then 1 or greater then %d", INT_MAX); RETURN_FALSE; } |
