|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79008 General performance regression with PHP 7.4 on Windows
Submitted: 2019-12-20 15:23 UTC Modified: 2019-12-20 15:23 UTC
From: Assigned: cmb (profile)
Status: Closed Package: Performance problem
PHP Version: 7.4Git-2019-12-20 (Git) OS: Windows
Private report: No CVE-ID: None
 [2019-12-20 15:23 UTC]
The reworking of the Windows stat implementation for PHP 7.4[1]
caused an fstat() related performance regression compared to PHP
7.3, which is most serious with OPcache disabled, where it makes
scripts and applications about 10% slower.

This is because fstat() now tries to retrieve the filename of the
stream to properly set the executable bits (S_IEXEC) of the
st_mode member, while formerly it did not (instead native Windows
fstat() and friends have been called).

[1] <;a=commit;h=e42e8b1051a8abeaa8e6053653a4ff43438766e2>

Test script:
echo 'hello world';

Expected result:
something like

Actual result:
something like


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-20 15:23 UTC]
-Assigned To: +Assigned To: cmb
 [2019-12-20 15:30 UTC]
Automatic comment on behalf of
Log: Fix #79008: General performance regression with PHP 7.4 on Windows
 [2019-12-20 15:30 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 16:01:33 2024 UTC