| Summary: | Float operations (sprintf, number_format, etc..) fail in mod_php-4.3.2 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Antonio Navarro Navarro <hostmaster> |
| Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
| Status: | RESOLVED INVALID | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
could you please include your 'emerge info' output? Solved. I have changed the arch in CFLAGS to pentium3. pentium4 cflags strikes again. |
Some float point operations seem to fail under a IBM e-server Pentium IV. Reproducible: Always Steps to Reproduce: <? $num = 57.4523; echo "1 : $num<br>"; echo "2 : ".sprintf("%2.02f", $num)."<br>"; echo "3 : ".number_format($num,2,'.',','); ?> Actual Results: 1 : 57.4523 2 : i.00 3 : i00 Expected Results: 1 : 57.4523 2 : 57.45 3 : 57.45 I have tried the float point operations in Perl in the same machine and it works Fine. perl -e 'printf("%2.3f", 334.38452);' 334.385 Also have tried mod_php-4.3.2-r1 and r2