iliaa           Thu Feb 15 01:40:36 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/mcrypt mcrypt.c 
  Log:
  use constant
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.91.2.3.2.8&r2=1.91.2.3.2.9&diff_format=u
Index: php-src/ext/mcrypt/mcrypt.c
diff -u php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.8 
php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.9
--- php-src/ext/mcrypt/mcrypt.c:1.91.2.3.2.8    Thu Feb 15 01:15:45 2007
+++ php-src/ext/mcrypt/mcrypt.c Thu Feb 15 01:40:36 2007
@@ -16,7 +16,7 @@
    |          Derick Rethans <[EMAIL PROTECTED]>                    |
    +----------------------------------------------------------------------+
  */
-/* $Id: mcrypt.c,v 1.91.2.3.2.8 2007/02/15 01:15:45 iliaa Exp $ */
+/* $Id: mcrypt.c,v 1.91.2.3.2.9 2007/02/15 01:40:36 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1242,7 +1242,7 @@
                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;
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to