mattwil         Tue Dec  2 14:50:37 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/json   JSON_parser.c 
  Log:
  MFH: Changed logic for LONG_MIN
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/JSON_parser.c?r1=1.1.2.13&r2=1.1.2.14&diff_format=u
Index: php-src/ext/json/JSON_parser.c
diff -u php-src/ext/json/JSON_parser.c:1.1.2.13 
php-src/ext/json/JSON_parser.c:1.1.2.14
--- php-src/ext/json/JSON_parser.c:1.1.2.13     Wed Jul 30 13:55:27 2008
+++ php-src/ext/json/JSON_parser.c      Tue Dec  2 14:50:37 2008
@@ -285,7 +285,7 @@
     if (type == IS_LONG)
     {
        double d = zend_strtod(buf->c, NULL);
-       if (d > LONG_MAX || d < -LONG_MAX) {
+       if (d > LONG_MAX || d < LONG_MIN) {
                ZVAL_DOUBLE(*z, d);
        } else {
                ZVAL_LONG(*z, (long)d);



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

Reply via email to