Re: [SMARTY-DEV] possible _parse_var_props() bug

From: Date: Sun, 16 Feb 2003 19:46:03 +0000
Subject: Re: [SMARTY-DEV] possible _parse_var_props() bug
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-706@lists.php.net to get a copy of this message
good catch, $_parse_var() doesn't need a second param, that has been removed from the call. Monte On Sat, 2003-02-15 at 23:37, Greg Beaver wrote: > 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 -- Monte Ohrt <monte@ispi.net>

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