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