tony2001 Tue Dec 19 13:15:30 2006 UTC
Modified files:
/php-src/main snprintf.c
Log:
inf->INF
nan->NAN
http://cvs.php.net/viewvc.cgi/php-src/main/snprintf.c?r1=1.46&r2=1.47&diff_format=u
Index: php-src/main/snprintf.c
diff -u php-src/main/snprintf.c:1.46 php-src/main/snprintf.c:1.47
--- php-src/main/snprintf.c:1.46 Tue Dec 19 13:13:48 2006
+++ php-src/main/snprintf.c Tue Dec 19 13:15:30 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: snprintf.c,v 1.46 2006/12/19 13:13:48 dmitry Exp $ */
+/* $Id: snprintf.c,v 1.47 2006/12/19 13:15:30 tony2001 Exp $ */
#include "php.h"
@@ -93,7 +93,7 @@
*decpt = 0;
c = *p;
zend_freedtoa(p);
- return(c == 'I' ? "inf" : "nan");
+ return(c == 'I' ? "INF" : "NAN");
}
/* Make a local copy and adjust rve to be in terms of s */
if (pad && fmode)
@@ -140,7 +140,7 @@
* We assume the buffer is at least ndigit long.
*/
snprintf(buf, ndigit + 1, "%s%s", sign ? "-" : "",
- *digits == 'I' ? "inf" : "nan");
+ *digits == 'I' ? "INF" : "NAN");
zend_freedtoa(digits);
return (buf);
}
@@ -940,10 +940,10 @@
}
if (zend_isnan(fp_num)) {
- s = "nan";
+ s = "NAN";
s_len = 3;
} else if (zend_isinf(fp_num)) {
- s = "inf";
+ s = "INF";
s_len = 3;
} else {
#ifdef HAVE_LOCALE_H
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php