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
 [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 15:01:29 2024 UTC