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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: corinl at gmx dot de
New email:
PHP Version: OS:

 

 [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)

Pull Requests

Pull requests:

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 Dec 21 17:01:58 2024 UTC