[php-src] Issue #22583: Return INT value for some disk_* operations

From: Date: Fri, 03 Jul 2026 23:31:35 +0000
Subject: [php-src] Issue #22583: Return INT value for some disk_* operations
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-252341@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/22583 Author: KarelWintersky ### Description Currently (and for who knows how many years), a number of functions responsible for working with the file system return float values ​​instead of integers. Does this seem confusing? A fractional number of bytes? How so? One might assume that in the days of the 32-bit PHP, the integer type wasn't large enough to accommodate the possible disk sizes of the time, but in 2026, this seems absurd. Not to mention that comparing floating-point numbers is an ambiguous operation. Functions that return float values ​​instead of integers are: - https://www.php.net/manual/en/function.disk-free-space.php - https://www.php.net/manual/en/function.disk-total-space.php P.S. The behavior looks especially strange considering that the function filesize returns an integer value...

« previous php.bugs (#252341) next »