php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5810 Arithmetic Operator %
Submitted: 2000-07-27 11:15 UTC Modified: 2000-07-27 11:28 UTC
From: nimrod at ambernet dot kiev dot ua Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: FreeBSD 4.0-Release
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nimrod at ambernet dot kiev dot ua
New email:
PHP Version: OS:

 

 [2000-07-27 11:15 UTC] nimrod at ambernet dot kiev dot ua
if 1st argument > 0x80000000 result always will be const (0)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 11:28 UTC] stas@php.net
Not true. 2147483649 % 3 returns -2. This is because PHP numbers are signed longs. If you want really large numbers, use bcmath extention.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 17:01:28 2024 UTC