php gives "0.0:" as value for 0.6/6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
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://
500 http://
100 /var/lib/
5.2.4-2ubuntu5 0
500 http://
apt-cache policy php5
php5:
Installed: (none)
Candidate: 5.2.4-2ubuntu5.6
Version table:
5.
500 http://
500 http://
5.2.4-2ubuntu5 0
500 http://
Running this code:
<?php
bcscale(10);
error_log(0.5/5);
error_log(0.6/6);
error_log(
?>
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.
Cannot confirm this on Karmic.
Are you using a 64bit arch? (I'm not)
$ php -r "echo PHP_VERSION; echo PHP_EOL; echo 0.6/6; echo PHP_EOL;"
5.2.6-3ubuntu4.1
0.1