]> granicus.if.org Git - php/commit
Fix bug #78094: File Search Problem Excessive Time
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 6 Jun 2019 13:54:12 +0000 (15:54 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 6 Jun 2019 13:55:46 +0000 (15:55 +0200)
commitf5b44c7e8a55978b5e3c3511b310ab8f09beaa97
treed2d475502d9f828d5b08157a9b5fd1229418ce73
parentc358c280df6e81facad4045320cfdb1149a91463
Fix bug #78094: File Search Problem Excessive Time

Instead of checking GetBinaryType() for each file, we do a much cheaper
pre-check whether the filename extension matches .exe or .com, and call
GetBinaryType() only in this case.  For BC we also report .bat and .cmd
files as executables again.

The patch has been provided by @weltling.
win32/ioutil.c