cvs: pear /PhpDocumentor/phpDocumentor phpDocumentorTParser.inc

From: Date: Thu, 23 Feb 2006 14:52:54 +0000
Subject: cvs: pear /PhpDocumentor/phpDocumentor phpDocumentorTParser.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38531@lists.php.net to get a copy of this message
cellog Thu Feb 23 14:52:54 2006 UTC Modified files: /pear/PhpDocumentor/phpDocumentor phpDocumentorTParser.inc Log: full fix for Bug #6305 requires that "," and ")" be handled differently. Only the ) should be pushed back on the WordParser http://cvs.php.net/viewcvs.cgi/pear/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc?r1=1.3&r2=1.4&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc diff -u pear/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc:1.3 pear/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc:1.4 --- pear/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc:1.3 Thu Feb 23 05:48:30 2006 +++ pear/PhpDocumentor/phpDocumentor/phpDocumentorTParser.inc Thu Feb 23 14:52:54 2006 @@ -21,14 +21,14 @@ * @package phpDocumentor * @subpackage Parsers * @author Gregory Beaver <cellog@users.sourceforge.net> - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ /** * Tokenizer-based parser for PHP source code * @package phpDocumentor * @subpackage Parsers * @author Gregory Beaver <cellog@users.sourceforge.net> - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ class phpDocumentorTParser extends Parser { @@ -559,7 +559,9 @@ { if ($this->checkEventPop($word,$pevent) && $pevent == PARSER_EVENT_FUNCTION_PARAM_VAR) { // end of [typehint ]$param[= defaultval] - $this->_wp->backupPos(); + if (is_string($word) && $word == ')') { + $this->_wp->backupPos(); + } $this->endFunctionParam($word); } elseif ($word == '=') { // about to parse the default value

« previous php.pear.cvs (#38531) next »