History log of /httpd/server/util_expr_parse.y
Revision Date Author Comments Expand
d0223955ace55d49e9d2fcb8c5a5041ff70ac6f7 1642154 27-Nov-2014 jkaluza

* ap_exr: Add replace(string, from, to) function.

be6de8c74ddbb71c428f02f42e9acc04162b4d20 1493414 15-Jun-2013 sf

Provide better token names for error messages Use either human readable names or the exact spelling from the BNF from the docs.

8ed293f91e7c2b9866ff024b20c09f7a62b1f640 1204087 19-Nov-2011 sf

Limit recursion in ap_expr evaluation to avoid unbounded stack usage * evaluate chains of ||, &&, and string concatenation non-recursively * limit other types of recursion to 20 levels * avoid some string copies if concatenating more than 2 strings

6492f9c71d0ea80100a27570189df3acd0a51c9d 1181230 10-Oct-2011 sf

Improve error message by removing 'unexpected T_ERROR' in one case.

da5fa15bb2ac6327c1770d5ba4f02e8a67f3f655 1157362 13-Aug-2011 sf

Do proper length checks in the expression scanner. This allows to remove the 8K length limit for expressions. Strings/Regexs in an expression are still limited to 8K, though.

d95a7ac0fe7a06495c3aab5d684b4174f9ab282c 1142164 02-Jul-2011 sf

Add string valued expressions to ap_expr, do some API cleanup - add possibility to have expressions that evaluate to a string and not to a boolean value - modify ap_expr_parse_cmd() interface to support this and make it more convenient to use in general - rename AP_EXPR_FLAGS_* to AP_EXPR_FLAG_* for consistency

68dfc95acc4fde241e0124dd29cdda973bd6ec2c 1042146 04-Dec-2010 sf

Rename ap_expr's typedef names: ap_expr -> ap_expr_t ap_expr_parse_ctx -> ap_expr_parse_ctx_t ap_expr_eval_ctx -> ap_expr_eval_ctx_t ap_expr_lookup_fn -> ap_expr_lookup_fn_t ap_expr_node_op -> ap_expr_node_op_e

6b3904b27e9d68c753cdd1fbab9b375eec50fb88 1039900 28-Nov-2010 sf

- add -ipmatch, -str(c)match, -fnmatch, -R operators to ap_expr - allow lookup function to pre-parse string constant arguments (used for subnet masks so far) - various bug fixes for binary operators - do strdup() for error messages created on the stack to avoid corruption

76a33192b55bef44bc6e6756a6b4e77d411127b9 1039204 25-Nov-2010 sf

Fix some Windows build issues

8bc0214116f2225966cf4a806dc183f18e7c3803 1037504 21-Nov-2010 sf

ap_expr related fixes/enhancements: - implement regex backreferences and make them available for setting envvars in SetEnvIfExpr - implement nested function calls in %-syntax: %{func1:%{func2:arg}} - actually implement evaluation of concatenation operator (oops...) - Fix <If ... > treating an internal error as success

8fae12696bce44be9ce4c56888690cad8ac7b8f9 1032073 06-Nov-2010 sf

Replace ap_expr with a parser derived from mod_ssl's parser. Make mod_ssl use the new parser. Rework ap_expr's public interface and provide hooks for modules to add variables and functions. The Netware and Windows build files still need to be adjusted