cvs: pear /PhpDocumentor/phpDocumentor HighlightParser.inc
| From: | Greg Beaver | Date: | Thu, 17 Aug 2006 19:01:10 +0000 |
| Subject: | cvs: pear /PhpDocumentor/phpDocumentor HighlightParser.inc | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41667@lists.php.net to get a copy of this message | ||
cellog Thu Aug 17 19:01:10 2006 UTC
Modified files:
/pear/PhpDocumentor/phpDocumentor HighlightParser.inc
Log:
make sure we don't get bogus "no error handler for event number XXX" because
the end of input was reached
http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/phpDocumentor/HighlightParser.inc?r1=1.10&r2=1.11&diff_format=u
Index: pear/PhpDocumentor/phpDocumentor/HighlightParser.inc
diff -u pear/PhpDocumentor/phpDocumentor/HighlightParser.inc:1.10
pear/PhpDocumentor/phpDocumentor/HighlightParser.inc:1.11
--- pear/PhpDocumentor/phpDocumentor/HighlightParser.inc:1.10 Thu Aug 17 02:28:20 2006
+++ pear/PhpDocumentor/phpDocumentor/HighlightParser.inc Thu Aug 17 19:01:10 2006
@@ -40,7 +40,7 @@
* @author Gregory Beaver <cellog@php.net>
* @copyright 2002-2006 Gregory Beaver
* @license http://www.opensource.org/licenses/lgpl-license.php
LGPL
- * @version CVS: $Id: HighlightParser.inc,v 1.10 2006/08/17 02:28:20 cellog Exp $
+ * @version CVS: $Id: HighlightParser.inc,v 1.11 2006/08/17 19:01:10 cellog Exp $
* @filesource
* @link http://www.phpdoc.org
* @link http://pear.php.net/PhpDocumentor
@@ -432,7 +432,7 @@
{
$handle = $this->eventHandlers[$pevent];
$this->$handle($word, $pevent);
- } else
+ } elseif ($word !== false)
{
debug('WARNING: possible error, no handler for event number '.$pevent);
if ($endrecur++ == 25)