From: woodsmailbox at yahoo dot com Operating system: WinXP SP2 PHP version: 5.2.4 PHP Bug Type: Streams related Bug description: Cannot access the old stream wrapper from a wrapper class
Description: ------------ I would like to "wrap" a stream wrapper, and this would include calling the original wrapper's methods from my wrapper class. For instance, I would like to implement versioning over the file:// protocol but I cannot access the filesystem while my file:// wrapper is registered. It would be nice to be able to use the classes of built-in wrappers. Also, I can't find the php function to change the default wrapper so I can have relative paths handled by my wrapper. A lot of app. code not under my control use relative paths. I could register my own file:// wrapper but then again... My current workaround is to call stream_wrapper_restore() inside my wrapper's functions, do my thing with the filesystem, then call stream_wrapper_register() again, but I think this sucks. I hope php is doing no more than changing some pointers internally when I call these functions, otherwise, the performance of my wrapper is gone. Thanx. Cosmin. -- Edit bug report at http://bugs.php.net/?id=42929&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42929&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42929&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42929&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42929&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42929&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42929&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42929&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42929&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42929&r=support Expected behavior: http://bugs.php.net/fix.php?id=42929&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42929&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42929&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42929&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42929&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42929&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42929&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42929&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42929&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42929&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42929&r=mysqlcfg
