Req #60810 [Opn->Wfx]: Persistent streams

From: Date: Mon, 26 Jul 2021 13:35:35 +0000
Subject: Req #60810 [Opn->Wfx]: Persistent streams
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235362@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60810&edit=1 ID: 60810 Updated by: cmb@php.net Reported by: boen dot robot at gmail dot com Summary: Persistent streams -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Streams related Operating System: Any PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Apparently, there is not much interest in having this, so I'm closing as WONTFIX. If you are still interested in this feature, please pursue the RFC process[1]. [1] <https://wiki.php.net/rfc/howto> Previous Comments: ------------------------------------------------------------------------ [2012-01-19 19:06:26] boen dot robot at gmail dot com Description: ------------ It would be really useful (performance wise) for many kinds of streams (particularly php://memory and php://temp streams) to be persistent, or more precisely, to have the option to be persistent. In the case of php://memory and php://temp, I realize there's Wincache and APC for that, but I'm talking about this not requiring an extension, plus, is available for other kinds of streams (http, ftp, etc.) too. To avoid any BC breaks, I suggest a new function, let's say pfopen(), that will be equivalent to fopen(), except that its first argument will be a persistent ID (to allow multiple persistent handles to the same resource/connection), and it will reuse a stream if one is already created within the current PHP process. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60810&edit=1

« previous php.bugs (#235362) next »