[php-src] PR #18964: Use st_blksize and st_blocks members conditionally
| From: | petk | Date: | Fri, 27 Jun 2025 21:13:21 +0000 |
| Subject: | [php-src] PR #18964: Use st_blksize and st_blocks members conditionally | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32229@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18964
Author: petk
Instead of filtering Windows specifically, the preprocessor macros HAVE_STRUCT_STAT_ST_BLKSIZE and
HAVE_STRUCT_STAT_ST_BLOCKS can be used.
These members are mostly present on all POSIX-based systems except on Windows these days but this
syncs the usage style across the code base.
Additionally, in ext/standard/ftp_fopen_wrapper.c to set ssb->sb.st_blocks, also
ssb->sb.st_blksize is added in the condition.