derick Sat Nov 29 10:30:51 2003 EDT Modified files: /php-src NEWS README.input_filter Log: - Update NEWS and README for input_filters Index: php-src/NEWS diff -u php-src/NEWS:1.1507 php-src/NEWS:1.1508 --- php-src/NEWS:1.1507 Fri Nov 28 21:49:03 2003 +++ php-src/NEWS Sat Nov 29 10:30:50 2003 @@ -2,6 +2,8 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Oct 2003, PHP 5 Beta 3 - Added possibility to call PHP functions as XSLT-functions. (Christian) +- Added possibility to prevent PHP from regustering variables when + input filter support is used. (Derick) - Added new functions: . dba_key_split() to split inifile keys in an array. (Marcus) . time_nanosleep() signal safe sleep (Magnus, Ilia) Index: php-src/README.input_filter diff -u php-src/README.input_filter:1.3 php-src/README.input_filter:1.4 --- php-src/README.input_filter:1.3 Sat Nov 29 10:24:33 2003 +++ php-src/README.input_filter Sat Nov 29 10:30:50 2003 @@ -85,10 +85,14 @@ { php_info_print_table_start(); php_info_print_table_row( 2, "My Input Filter Support", "enabled" ); - php_info_print_table_row( 2, "Revision", "$Revision: 1.3 $"); + php_info_print_table_row( 2, "Revision", "$Revision: 1.4 $"); php_info_print_table_end(); } +/* The filter handler. If you return 1 from it, then PHP also registers the + * (modified) variable. Returning 0 prevents PHP from registering the variable; + * you can use this if your filter already registers the variable under a + * different name, or if you just don't want the variable registered at all. */ unsigned int my_sapi_input_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len) { zval new_var; @@ -138,7 +142,7 @@ php_strip_tags(*val, val_len, NULL, NULL, 0); *new_val_len = strlen(*val); - return 1; + return 1; } PHP_FUNCTION(my_get_raw)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php