Xibo 1.8.1 - Displays -> Storage Total and Storage Free

The displayed values are not correct.

What is recorded in the database for those values?

I’m wondering if it’s another 32 bit PHP issue as I don’t see it on our systems.

storageAvailableSpace: 2147483647
StorageTotalSpace: 2147483647

Maximum size of an integer on 32 bit PHP (or PHP on Windows) is 2147483647, so I suspect that’s the issue you’re seeing. I don’t think that’s any different from 1.7 series.

Version 1.7.9

Our data sanitisation is better in 1.8 and we therefore use intval to sanitise this input - that is what is causing the 32bit integer issue.

From the docs:

 * The maximum value depends on the system. 32 bit systems have a 
 * maximum signed integer range of -2147483648 to 2147483647. So for example 
 * on such a system, intval('1000000000000') will return 
 * 2147483647. The maximum signed integer value for 64 bit systems is 
 * 9223372036854775807.

It is plausible that you will hit this issue in other places too - but I am very reluctant to reduce the new levels of sanitization to workaround this.