diff options
author | Felipe Pena <felipensp@gmail.com> | 2012-07-14 15:15:24 -0300 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2012-07-14 15:15:24 -0300 |
commit | 3728e50e9ff6014c35d8242b1d433a396d5d4e8d (patch) | |
tree | 131b2a7040cf8c19794724d6a1f4ac9d2a37b418 /main/snprintf.c | |
parent | d640e446abfacb65d2d516f38f93c2d8001aefbb (diff) | |
parent | 63f3962a9015cd119b028e4c6e3f5533fb9f38e0 (diff) | |
download | php-git-3728e50e9ff6014c35d8242b1d433a396d5d4e8d.tar.gz |
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
- Fixed bug #62525 (sigabrt while converting floating point to string)
Diffstat (limited to 'main/snprintf.c')
-rw-r--r-- | main/snprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/snprintf.c b/main/snprintf.c index cd038d018c..bda110d339 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -94,7 +94,7 @@ static char * __cvt(double value, int ndigit, int *decpt, int *sign, int fmode, *decpt = 0; c = *p; zend_freedtoa(p); - return(c == 'I' ? "INF" : "NAN"); + return strdup((c == 'I' ? "INF" : "NAN")); } /* Make a local copy and adjust rve to be in terms of s */ if (pad && fmode) { |