summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-08-20 20:47:47 +0000
committerWez Furlong <wez@php.net>2002-08-20 20:47:47 +0000
commit9d348ea80059301a099b8f3dce25429c0760666d (patch)
tree8e4154dca38d70d9b4ddf5485fd3055837634e21 /ext/standard/php_string.h
parenta9ba30cd89b8065d1938a9e02c7ba373f2934180 (diff)
downloadphp-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/php_string.h')
-rw-r--r--ext/standard/php_string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h
index d63f91b254..6fbc57bd42 100644
--- a/ext/standard/php_string.h
+++ b/ext/standard/php_string.h
@@ -89,6 +89,9 @@ PHP_FUNCTION(strcoll);
PHP_FUNCTION(money_format);
#endif
+PHP_MINIT_FUNCTION(string_filters);
+PHP_MSHUTDOWN_FUNCTION(string_filters);
+
#if defined(HAVE_LOCALECONV) && defined(ZTS)
PHP_MINIT_FUNCTION(localeconv);
PHP_MSHUTDOWN_FUNCTION(localeconv);