Return to bug27619.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
1.1 misho 1: --TEST-- 2: Bug #27619 (filters not applied to pre-buffered data) 3: --FILE-- 4: <?php 5: $fp = tmpfile(); 6: fwrite($fp, "this is a lowercase string.\n"); 7: rewind($fp); 8: 9: /* Echo out the first four bytes 'this' without applying filter 10: Remainder will get sucked into the read buffer though. */ 11: echo fread($fp, 4); 12: 13: stream_filter_append($fp, "string.toupper"); 14: 15: fpassthru($fp); 16: ?> 17: --EXPECT-- 18: this IS A LOWERCASE STRING.