[Bug 372091] [NEW] php gives "0.0:" as value for 0.6/6

morodoch morodoch at gmail.com
Tue May 5 09:49:27 BST 2009


Public bug reported:

Binary package hint: php5

lsb_release -rd
Description:	Ubuntu 8.04.2
Release:	8.04

apt-cache policy php5-cli
php5-cli:
  Installed: 5.2.4-2ubuntu5.6
  Candidate: 5.2.4-2ubuntu5.6
  Version table:
 *** 5.2.4-2ubuntu5.6 0
        500 http://gb.archive.ubuntu.com hardy-updates/main Packages
        500 http://security.ubuntu.com hardy-security/main Packages
        100 /var/lib/dpkg/status
     5.2.4-2ubuntu5 0
        500 http://gb.archive.ubuntu.com hardy/main Packages

apt-cache policy php5
php5:
  Installed: (none)
  Candidate: 5.2.4-2ubuntu5.6
  Version table:
     5.2.4-2ubuntu5.6 0
        500 http://gb.archive.ubuntu.com hardy-updates/main Packages
        500 http://security.ubuntu.com hardy-security/main Packages
     5.2.4-2ubuntu5 0
        500 http://gb.archive.ubuntu.com hardy/main Packages

Running this code:

<?php

bcscale(10);

error_log(0.5/5);
error_log(0.6/6);
error_log(bcdiv(0.6, 6));
?>

Produces this output:

0.1
0.0:
0.1000000000

I'd expect the second line to be "0.1", not "0.0:". The bcdiv value is
correct.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
php gives "0.0:" as value for 0.6/6
https://bugs.launchpad.net/bugs/372091
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list