[php-maint] Bug#603292: libapache2-mod-php5: PHP5 does not round correctly
Markus Knaup
mk at digitaleprodukte.de
Fri Nov 12 16:01:11 UTC 2010
Package: libapache2-mod-php5
Version: 5.2.6.dfsg.1-1+lenny9
Severity: important
PHP5 does not round correctly.
Example code:
<?php
echo round(1.025, 2) . "<br />";
echo round(1.125, 2) . "<br />";
echo round(1.225, 2) . "<br />";
echo number_format(1.025, 2) . "<br />";
echo number_format(1.125, 2) . "<br />";
echo number_format(1.225, 2) . "<br />";
?>
This prints:
1.02
1.13
1.23
1.02
1.13
1.23
The first and fourth value should be 1.03 and not 1.02.
-- System Information:
Debian Release: 5.0.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.28.2 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libapache2-mod-php5 depends on:
ii apache2-mpm-pre 2.2.9-10+lenny8 Apache HTTP Server - traditional n
ii apache2.2-commo 2.2.9-10+lenny8 Apache HTTP Server common files
ii libbz2-1.0 1.0.5-1+lenny1 high-quality block-sorting file co
ii libc6 2.7-18lenny6 GNU C Library: Shared libraries
ii libcomerr2 1.41.3-1 common error description library
ii libdb4.6 4.6.21-11 Berkeley v4.6 Database Libraries [
ii libkrb53 1.6.dfsg.4~beta1-5lenny4 MIT Kerberos runtime libraries
ii libmagic1 4.26-1 File type determination library us
ii libpcre3 7.6-2.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8g-15+lenny8 SSL shared libraries
ii libxml2 2.6.32.dfsg-5+lenny1 GNOME XML library
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
ii php5-common 5.2.6.dfsg.1-1+lenny9 Common files for packages built fr
ii tzdata 2010j-0lenny1 time zone and daylight-saving time
ii ucf 3.0016 Update Configuration File: preserv
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
libapache2-mod-php5 recommends no packages.
Versions of packages libapache2-mod-php5 suggests:
ii php-pear 5.2.6.dfsg.1-1+lenny9 PEAR - PHP Extension and Applicati
-- no debconf information
More information about the pkg-php-maint
mailing list