- Fixed bug #24792 (--enable-zend-multibyte causes random segfaults with ZTS).
(fujimoto)
- Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris). (Ilia)
+- Fixed bug #24063 (serialize() missing 0 after the . on scientific notation).
+ (Marcus, Ilia)
07 Aug 2003, Version 4.3.3RC3
- Fixed bug #24958 (Incorrect handling of 404s). (Ilia, Justin)
p1 = &buf[NDIG];
while (fi != 0) {
fj = modf(fi / 10, &fi);
- if (p1 > &buf[0]) {
- *--p1 = (int) ((fj + .03) * 10) + '0';
- } else {
+ if (p1 <= &buf[0]) {
mvl = NDIG - ndigits;
memmove(&buf[mvl], &buf[0], NDIG-mvl-1);
p1 += mvl;
- *--p1 = (int) ((fj + .03) * 10) + '0';
}
+ *--p1 = (int) ((fj + .03) * 10) + '0';
r2++;
}
while (p1 < &buf[NDIG])
buf[0] = '\0';
return (buf);
}
- while (p <= p1 && p < &buf[NDIG]) {
+ if (p <= p1 && p < &buf[NDIG]) {
arg = modf(arg * 10, &fj);
- *p++ = (int) fj + '0';
+ if ((int)fj==10) {
+ *p++ = '1';
+ fj = 0;
+ *decpt = ++r2;
+ }
+ while (p <= p1 && p < &buf[NDIG]) {
+ *p++ = (int) fj + '0';
+ arg = modf(arg * 10, &fj);
+ }
}
if (p1 >= &buf[NDIG]) {
buf[NDIG - 1] = '\0';