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

Jonathan Marsden jmarsden at fastmail.fm
Mon May 18 00:34:59 BST 2009


@Daniel: I get the same results as you ( 0.1 ) on Ubuntu Jaunty 9.04
amd64.  I also tested morodoch's PHP example code, and it works fine
here also:

$ php -r "echo PHP_VERSION; echo PHP_EOL; echo 0.6/6; echo PHP_EOL;"
5.2.6-3ubuntu4.1
0.1
$ echo -e "<?php\nbcscale(10);\nerror_log(0.5/5);\nerror_log(0.6/6);\nerror_log(bcdiv(0.6, 6));\n?>" |php
0.1
0.1
0.1000000000
$ 

So if this is reproducible, maybe it is only reproducible under Ubuntu
Hardy 8.04 ??

-- 
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