#48596 [NEW]: stream_filter_remove example code does not work

From: Date: Thu, 18 Jun 2009 14:49:33 +0000
Subject: #48596 [NEW]: stream_filter_remove example code does not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-138466@lists.php.net to get a copy of this message
From: php_nospam at ramihyn dot sytes dot net Operating system: Windows XP SP3 PHP version: 5.3.0RC3 PHP Bug Type: Streams related Bug description: stream_filter_remove example code does not work Description: ------------ The example provided for stream_filter_remove() does not work as expected. Reproduce code: --------------- <?php $fp = fopen("test.txt", "w"); $rot13_filter = stream_filter_append($fp, "string.rot13", STREAM_FILTER_WRITE); fwrite($fp, "This is "); stream_filter_remove($rot13_filter); fwrite($fp, "a test\n"); rewind($fp); fpassthru($fp); fclose($fp); ?> Expected result: ---------------- Guvf vf a test Actual result: -------------- (no output) -- Edit bug report at http://bugs.php.net/?id=48596&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48596&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48596&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48596&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48596&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48596&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48596&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48596&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48596&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48596&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48596&r=support Expected behavior: http://bugs.php.net/fix.php?id=48596&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48596&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48596&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48596&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48596&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48596&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48596&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48596&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48596&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48596&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48596&r=mysqlcfg

« previous php.bugs (#138466) next »