diff options
author | Wez Furlong <wez@php.net> | 2002-08-20 20:47:47 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-08-20 20:47:47 +0000 |
commit | 9d348ea80059301a099b8f3dce25429c0760666d (patch) | |
tree | 8e4154dca38d70d9b4ddf5485fd3055837634e21 /ext/standard/file.h | |
parent | a9ba30cd89b8065d1938a9e02c7ba373f2934180 (diff) | |
download | php-git-9d348ea80059301a099b8f3dce25429c0760666d.tar.gz |
Implement filter API for streams.
Filters can be stacked onto a stream; more details will follow in docs and
on php-dev.
Implement "string.rot13" filter
Allows the following script:
$fp = fopen("file.txt", "r");
stream_filter_prepend($fp, "string.rot13");
// File contents will be subject to a rot13 transformation before
// being output.
fpassthru($fp);
fclose($fp);
Diffstat (limited to 'ext/standard/file.h')
-rw-r--r-- | ext/standard/file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/file.h b/ext/standard/file.h index 0ea36c7907..c2af165679 100644 --- a/ext/standard/file.h +++ b/ext/standard/file.h @@ -77,6 +77,8 @@ PHP_FUNCTION(stream_context_create); PHP_FUNCTION(stream_context_set_params); PHP_FUNCTION(stream_context_set_option); PHP_FUNCTION(stream_context_get_options); +PHP_FUNCTION(stream_filter_prepend); +PHP_FUNCTION(stream_filter_append); PHP_MINIT_FUNCTION(user_streams); PHPAPI int php_set_sock_blocking(int socketd, int block TSRMLS_DC); |