From: php at benjaminschulz dot com Operating system: PHP version: 5.3CVS-2008-03-10 (CVS) PHP Bug Type: SPL related Bug description: Feature Request: getFilePointer() for Childs of SplFileObject
Description: ------------ It would be nice if it would be possible to get the underlying resource handle of an SplFileObject to be able to add stream filters on the file. Sadly the URI parser in PHP seems to be broken and URIs with filters like php://filter/read=convert.iconv.ISO-8859-15/UTF-8/resource=... cannot be used (encoding the slash doesn't work either (%2F)) therefore it would be nice if one could access the underlying resource handle f.e. by providing a protected $fp in SplFileObject one could use in a child class then and do the stream_filter_append() there. -- Edit bug report at http://bugs.php.net/?id=44392&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44392&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44392&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44392&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44392&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44392&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44392&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44392&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44392&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44392&r=support Expected behavior: http://bugs.php.net/fix.php?id=44392&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44392&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44392&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44392&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44392&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44392&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44392&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44392&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44392&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44392&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44392&r=mysqlcfg