tony2001 Tue Dec 19 13:27:09 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/main snprintf.c Log: MFH http://cvs.php.net/viewvc.cgi/php-src/main/snprintf.c?r1=1.37.2.4.2.6&r2=1.37.2.4.2.7&diff_format=u Index: php-src/main/snprintf.c diff -u php-src/main/snprintf.c:1.37.2.4.2.6 php-src/main/snprintf.c:1.37.2.4.2.7 --- php-src/main/snprintf.c:1.37.2.4.2.6 Tue Dec 19 13:15:39 2006 +++ php-src/main/snprintf.c Tue Dec 19 13:27:09 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: snprintf.c,v 1.37.2.4.2.6 2006/12/19 13:15:39 tony2001 Exp $ */ +/* $Id: snprintf.c,v 1.37.2.4.2.7 2006/12/19 13:27:09 tony2001 Exp $ */ #include "php.h" @@ -139,7 +139,7 @@ * Infinity or NaN, convert to inf or nan with sign. * We assume the buffer is at least ndigit long. */ - snprintf(buf, ndigit + 1, "%s%s", sign ? "-" : "", + snprintf(buf, ndigit + 1, "%s%s", (sign && *digits == 'I') ? "-" : "", *digits == 'I' ? "INF" : "NAN"); zend_freedtoa(digits); return (buf);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php