RackTables/racktables — pull request #4 by rhysm (2012-09-14 03:05:30+00:00)
Title: Potential fix for issue 0000602

We were affected by this bug: http://bugs.racktables.org/view.php?id=602

Discovered it was due to being on a 32-bit system and the PHP_MAX_INT being half the size of 0xffffffff.

Test Code:

> 24);
echo "\n";
echo PHP_INT_MAX;
echo "\n";

?>

32-bit Output (capacity not being shown, bug present):

-1
2147483647

64-bit Out (capacity working, bug not present):

255
9223372036854775807

My first pull request so let me know if I've done anything wrong.

- Rhys