php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-10-14 12:31 UTC] corinl at gmx dot de
Hi,
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.

Patches

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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 01:19 UTC] jani@php.net
-Summary: add timout to flush() +Summary: Add timeout to flush() -Package: Feature/Change Request +Package: *General Issues
 [2011-01-01 01:20 UTC] jani@php.net
-Package: *General Issues +Package: Filesystem function related
 [2011-01-01 01:20 UTC] jani@php.net
-Operating System: linux +Operating System: * -PHP Version: 4.2.3 +PHP Version: *
 [2017-01-10 06:40 UTC] krakjoe@php.net
-Status: Open +Status: Wont fix
 [2017-01-10 06:40 UTC] krakjoe@php.net
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.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC