From:             codeslinger at compsalot dot com
Operating system: any
PHP version:      5.2.12
PHP Bug Type:     Feature/Change Request
Bug description:  stream_stat needs Context

Description:
------------
Feature Request:

the stream wrapper functions are *totally awesome*  :-)  !!!

but the "stat" family of functions is limited by the lack of a "context"
param.

For instance I need to be able to provide a user name and password for a
particular connection.  for opendir mkdir fopen etc.  I am able to pass a
context with that info and everything works.  But then when I try to do a
"stat" or "fstat"  it fails because there is no way to pass the $context.

Thank you for making PHP such a fantastic programming language!


Reproduce code:
---------------
---
>From manual page: streamwrapper.stream-stat#Description
---


Actual result:
--------------
also see related 
Bug #42965      copy() should support context parameters for URLs



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

Reply via email to