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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
42 + 45 = ?
Subscribe to this entry?

 
 [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

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.
 [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:  https://github.com/php/pecl-web_services-oauth/pull/4
Patch:      https://github.com/php/pecl-web_services-oauth/pull/4.patch
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC