]> granicus.if.org Git - php/commit
Refactor stat implementation
authorAnatol Belski <ab@php.net>
Sun, 15 Jul 2018 07:33:14 +0000 (09:33 +0200)
committerAnatol Belski <ab@php.net>
Sun, 26 Aug 2018 20:30:06 +0000 (22:30 +0200)
commite42e8b1051a8abeaa8e6053653a4ff43438766e2
tree75b7a444f90fd4ecc64e6956acd262e69193c957
parent2dbd21c12f656663cdbcae9e64b76a7316566c18
Refactor stat implementation

- move relevant parts into win32
- general cleanup
- use Windows API and fallback to POSIX
- improve filetime to timestamp conversion
- improve stat/fsat
- handle ino by using file index
- handle st_dev by using volume serial number

The inode implementation is based on file indexes from NTFS. On 32-bit,
fake inodes are shown, that may lead to unexpeted results. 64-bit
implementation is most reliable.
Zend/zend_stream.h
Zend/zend_virtual_cwd.c
Zend/zend_virtual_cwd.h
ext/standard/file.c
ext/standard/filestat.c
ext/standard/tests/file/stat_basic-win32-mb.phpt
ext/standard/tests/file/stat_basic-win32.phpt
ext/standard/tests/file/stat_variation7-win32.phpt
win32/ioutil.c
win32/ioutil.h