PHP 4.0 Bug #5672: floor() cant handle large numbers
| From: | ole at chaos dot dk | Date: | Wed, 19 Jul 2000 09:32:40 +0000 |
| Subject: | PHP 4.0 Bug #5672: floor() cant handle large numbers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25056@lists.php.net to get a copy of this message | ||
From: ole@chaos.dk
Operating system: FreeBSD 3.4
PHP version: 4.0.0
PHP Bug Type: Misbehaving function
Bug description: floor() cant handle large numbers
<?
$bytes=2640947434103;
$a=floor($bytes/1024);
?>
This fails. If you substitute floor with either ciel or round it works fine. The bug is also in php
3.0.12.
Only module added is mysql.
No changes is made to php.ini