|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [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 Jul 17 11:01:28 2024 UTC