simplify handling of variables by maintaining two strings which

are simply appended instead of traversing the hash table on each
URL/form.

also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.

remove remove_var, add reset_vars.  move the function declarations
into the right header file.
This commit is contained in:
Sascha Schumann 2002-05-04 18:33:13 +00:00
parent ebfff2df7e
commit 9743860d35
6 changed files with 52 additions and 77 deletions

View file

@ -94,5 +94,8 @@ ZEND_API extern php_output_globals output_globals;
#define PHP_OUTPUT_HANDLER_INTERNAL 0
#define PHP_OUTPUT_HANDLER_USER 1
PHP_FUNCTION(output_add_rewrite_var);
PHP_FUNCTION(output_reset_rewrite_vars);
#endif /* PHP_OUTPUT_H */