diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2003-02-19 19:41:09 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2003-02-19 19:41:09 +0000 |
| commit | 7429c2dc3f72ed9a6a41ccefc68595e76319cdae (patch) | |
| tree | 5a1cf40f32cb245cc33b043339464da15507462c /main/SAPI.c | |
| parent | 0458bb5e2b31e571b83e6aa674073c28fb8c4fbf (diff) | |
| download | php-git-7429c2dc3f72ed9a6a41ccefc68595e76319cdae.tar.gz | |
Input Filter support. See README.input_filter for details.
@- Input Filter support added. See README.input_filter. (Rasmus)
Diffstat (limited to 'main/SAPI.c')
| -rw-r--r-- | main/SAPI.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index cbe23ba575..117d868fc8 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -823,6 +823,11 @@ SAPI_API int sapi_register_treat_data(void (*treat_data)(int arg, char *str, zva return SUCCESS; } +SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char *val, unsigned int val_len TSRMLS_DC)) +{ + sapi_module.input_filter = input_filter; + return SUCCESS; +} SAPI_API int sapi_flush(TSRMLS_D) { |
