|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19905 Add timeout to flush()
Submitted: 2002-10-14 12:31 UTC Modified: 2017-01-10 06:40 UTC
From: corinl at gmx dot de Assigned:
Status: Wont fix Package: Filesystem function related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: corinl at gmx dot de
New email:
PHP Version: OS:


 [2002-10-14 12:31 UTC] corinl at gmx dot de
sometimes flush() takes a lot of time (> 300 seconds). Would it be possible to add a timeout in milliseconds? Flush should then return true/false. False if timeout exceeded. Would be very helpful for some scripts, i think.


TamaraPath (last revision 2015-07-29 13:50 UTC by dejan732 at hotmail dot rs)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 01:19 UTC]
-Summary: add timout to flush() +Summary: Add timeout to flush() -Package: Feature/Change Request +Package: *General Issues
 [2011-01-01 01:20 UTC]
-Package: *General Issues +Package: Filesystem function related
 [2011-01-01 01:20 UTC]
-Operating System: linux +Operating System: * -PHP Version: 4.2.3 +PHP Version: *
 [2017-01-10 06:40 UTC]
-Status: Open +Status: Wont fix
 [2017-01-10 06:40 UTC]
This cannot be done in a portable way across supported streams: even if you interrupt fflush, it will return FAILURE, but still attempt to perform the write.
 [2018-12-14 12:11 UTC]
The following pull request has been associated:

Patch Name: Fix package.xml and update version for 2.0.4
On GitHub:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 13:01:30 2024 UTC