From:             
Operating system: Any
PHP version:      Irrelevant
Package:          Streams related
Bug Type:         Feature/Change Request
Bug description:Persistent streams

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 bug report at https://bugs.php.net/bug.php?id=60810&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60810&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60810&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60810&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60810&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60810&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60810&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60810&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60810&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60810&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60810&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60810&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60810&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60810&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60810&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60810&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60810&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60810&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60810&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60810&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60810&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60810&r=mysqlcfg

Reply via email to