mattwil         Tue Dec  2 14:50:22 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /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.12.2.2&r2=1.1.2.12.2.3&diff_format=u
Index: php-src/ext/json/JSON_parser.c
diff -u php-src/ext/json/JSON_parser.c:1.1.2.12.2.2 
php-src/ext/json/JSON_parser.c:1.1.2.12.2.3
--- php-src/ext/json/JSON_parser.c:1.1.2.12.2.2 Wed Jul 30 13:52:59 2008
+++ php-src/ext/json/JSON_parser.c      Tue Dec  2 14:50:22 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