possible _parse_var_props() bug

From: Date: Sun, 16 Feb 2003 05:37:37 +0000
Subject: possible _parse_var_props() bug
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-703@lists.php.net to get a copy of this message
Here is the beginning of _parse_var_props: /** * compile single variable and section properties token into * PHP code * * @param string $val * @param string $tag_attrs */ function _parse_var_props($val, $tag_attrs = null) { $val = trim($val); if(preg_match('!^(' . $this->_obj_call_regexp . '|' . $this->_dvar_regexp . ')(?:' . $this->_mod_regexp . '*)$!', $val)) { // $ variable or object return $this->_parse_var($val, $tag_attrs); } ... Here is the declaration for _parse_var(): /** * parse variable expression into PHP code * * @param string $var_expr */ function _parse_var($var_expr) { ... As you can see, there is no second parameter, but _parse_var_props calls _parse_var with 2 parameters! Greg -- phpDocumentor http://www.phpdoc.org

« previous php.smarty.dev (#703) next »