Fix #78386: fstat mode has unexpected value on PHP 7.4
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 20 Aug 2019 14:04:14 +0000 (16:04 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 20 Aug 2019 14:04:14 +0000 (16:04 +0200)
commitc03114e55c7b9367fc9be895fe0df01cd1b62cab
treee738260fd074bb5d3287fa4dec208c075a07875b
parentae923287cada2bb59877e806c8219b74f7d857d5
Fix #78386: fstat mode has unexpected value on PHP 7.4

We must not assume that any file which is not a directory is a regular
file.  Therefore we employ `GetFileType()` in this case to properly
distinguish between character special, FIFO special and regular files.
NEWS
ext/standard/tests/file/bug78386.phpt [new file with mode: 0644]
win32/ioutil.c