php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46534 Incorrect usage of SI-prefixes by PHP
Submitted: 2008-11-10 11:12 UTC Modified: 2011-04-08 18:07 UTC
Votes:16
Avg. Score:4.5 ± 1.1
Reproduced:12 of 14 (85.7%)
Same Version:3 (25.0%)
Same OS:6 (50.0%)
From: alexanderpas at yahoo dot co dot uk Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: * OS: *
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-11-10 11:12 UTC] alexanderpas at yahoo dot co dot uk

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-10 14:00 UTC] alexanderpas at yahoo dot co dot uk
proper table...
decimal value 	binary value 	difference 	
1000^1 = 10^3 	1024^1 = 2^10 	2.4%
1000^2 = 10^6 	1024^2 = 2^20 	4.9%
1000^3 = 10^9 	1024^3 = 2^30 	7.4%
1000^4 = 10^12 	1024^4 = 2^40 	10.0%
1000^5 = 10^15 	1024^5 = 2^50 	12.6%
1000^6 = 10^18 	1024^6 = 2^60 	15.3%
1000^7 = 10^21 	1024^7 = 2^70 	18.1%
1000^8 = 10^24 	1024^8 = 2^80 	20.9%
 [2009-04-24 00:47 UTC] kriceslo at gmail dot com
This needs to be addressed. We, in the IT field, need to start using the correct units--now standardized and accepted BY LAW in some countries.

Great job alexanderpas!
 [2009-09-03 16:07 UTC] alexanderpas at yahoo dot co dot uk
Note that even Mac OS X v10.6 is using 1000 bytes per kilobyte. (http://support.apple.com/kb/TS2419)

Linux is using it for years already (units(8) manual page)

The only operating system still using 1024 for kilo is Microsoft Windows

I suggest we use the proper and full kilobyte and kibibyte definitions as soon as possible!
 [2009-09-03 16:09 UTC] alexanderpas at yahoo dot co dot uk
units(7) manual page ofcourse
 [2011-04-08 18:07 UTC] jani@php.net
-Package: Feature/Change Request +Package: Scripting Engine problem
 [2011-04-08 18:07 UTC] jani@php.net
-PHP Version: 6 +PHP Version: *
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 01:02:05 2014 UTC