[wp-trac] [WordPress Trac] #17725: wp_convert_hr_to_bytes() fails on large numeric values
WordPress Trac
noreply at wordpress.org
Sun Dec 28 15:27:17 UTC 2014
#17725: wp_convert_hr_to_bytes() fails on large numeric values
---------------------------+----------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Formatting | Version: 2.3
Severity: trivial | Resolution: wontfix
Keywords: needs-refresh | Focuses:
---------------------------+----------------------
Changes (by nacin):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
The logic in the new patch is also var too obtuse (and fragile).
Hypothetically, this function should indeed work for any human-readable
size value, based on what it is named and currently documented. This works
fine for values using "K", "KB", or "KiB" etc. It should hypothetically be
able to convert a 500GB hard drive to bytes. But in practice, if this
fails on a 32-bit system, I don't really care.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17725#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list