Re: #1093 [NEW]: E_ALL error parsing simple text.

From: Date: Tue, 30 Mar 2004 12:50:24 +0000
Subject: Re: #1093 [NEW]: E_ALL error parsing simple text.
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26876@lists.php.net to get a copy of this message
Hi, Alan, Here is a hot-fix. Replace the getTokens() method in Wiki.php with this code instead. Will release a patched package with this new code. Sorry for the trouble, and thanks for the report. <?php /** * * Returns tokens that have been parsed out of the source text. * * @access public * * @param array $rules If an array of rule names is passed, only return * tokens matching these rule names. If no array is passed, return all * tokens. * * @return array An array of tokens. * */ function getTokens($rules = null) { if (is_null($rules)) { // was (! is_null($rules)) return $this->_tokens; } else { settype($rules, 'array'); // was ($rules, array()) $result = array(); foreach ($this->_tokens as $key => $val) { if (in_array($val[0], $rules)) { $result[] = $val; } } return $result; } } ?> -- Paul M. Jones pmjones@ciaweb.net Savant: the simple alternative to Smarty. http://phpsavant.com/

« previous php.pear.dev (#26876) next »