Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

NOBUG move function definition is_valid_var_or_func_name above 'HERE

BE INTERNAL METHODS' line.
  • Loading branch information...
commit 6efaec1e15352c188c951773b960df05ff489258 1 parent 06329db
@jamiepratt jamiepratt authored timhunt committed
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/evalmath/evalmath.class.php
View
9 lib/evalmath/evalmath.class.php
@@ -176,6 +176,14 @@ function funcs() {
return $output;
}
+ /**
+ * @param string $name
+ * @return boolean Is this a valid var or function name?
+ */
+ public static function is_valid_var_or_func_name($name){
+ return preg_match('/'.self::$namepat.'$/iA', $name);
+ }
+
//===================== HERE BE INTERNAL METHODS ====================\\
// Convert infix to postfix notation
@@ -428,6 +436,7 @@ function trigger($msg) {
if (!$this->suppress_errors) trigger_error($msg, E_USER_WARNING);
return false;
}
+
}
// for internal use
Please sign in to comment.
Something went wrong with that request. Please try again.