php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4246 ceil and floor functions work only up to 32 bit numbers
Submitted: 2000-04-26 07:42 UTC Modified: 2000-08-01 17:07 UTC
From: dobosgy at netcity dot hu Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.13 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dobosgy at netcity dot hu
New email:
PHP Version: OS:

 

 [2000-04-26 07:42 UTC] dobosgy at netcity dot hu
<?
// Incorrect results:
$a=pow(2,31);
echo $a."<br>";
echo ceil($a)."<br>";
echo floor($a)."<br>";

echo "----------<br>";

// Correct results:
$a=pow(2,31)-1;
echo $a."<br>";
echo ceil($a)."<br>";
echo floor($a)."<br>";
?>

Configure command: ./configure '--with-apache=../apache_1.3.9' '--with-mysql' 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-01 17:07 UTC] hholzgra@php.net
fixed in cvs
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 14 01:00:01 2026 UTC