cvs: pear /PhpDocumentor/phpDocumentor Errors.inc Setup.inc.php

From: Date: Sun, 09 Dec 2007 23:40:07 +0000
Subject: cvs: pear /PhpDocumentor/phpDocumentor Errors.inc Setup.inc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-49692@lists.php.net to get a copy of this message
ashnazg Sun Dec 9 23:40:07 2007 UTC Modified files: /pear/PhpDocumentor/phpDocumentor Setup.inc.php Errors.inc Log: fix Sourceforge [1846302] php version > 4.3.0 and tokenizer http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/phpDocumentor/Setup.inc.php?r1=1.26&r2=1.27&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Setup.inc.php diff -u pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.26 pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.27 --- pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.26 Sun Aug 5 03:04:36 2007 +++ pear/PhpDocumentor/phpDocumentor/Setup.inc.php Sun Dec 9 23:40:07 2007 @@ -29,7 +29,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: Setup.inc.php,v 1.26 2007/08/05 03:04:36 ashnazg Exp $ + * @version CVS: $Id: Setup.inc.php,v 1.27 2007/12/09 23:40:07 ashnazg Exp $ * @link http://www.phpdoc.org * @link http://pear.php.net/PhpDocumentor * @since 1.2 @@ -207,8 +207,14 @@ $this->parse = new phpDocumentorTParser; } else { - phpDocumentor_out("using default (slower) Parser - get PHP 4.3.0+ -and load the tokenizer extension for faster parsing (your version is ".phpversion()."\n"); + phpDocumentor_out("No Tokenizer support detected, so using default (slower) Parser..." . PHP_EOL); + + if (version_compare(phpversion(), '4.3.0', '<')) { + phpDocumentor_out(" for faster parsing, recompile PHP with --enable-tokenizer." . PHP_EOL ); + } else { + phpDocumentor_out(" for faster parsing, recompile PHP without --disable-tokenizer." . PHP_EOL ); + } + $this->parse = new Parser; } } http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/phpDocumentor/Errors.inc?r1=1.14&r2=1.15&diff_format=u Index: pear/PhpDocumentor/phpDocumentor/Errors.inc diff -u pear/PhpDocumentor/phpDocumentor/Errors.inc:1.14 pear/PhpDocumentor/phpDocumentor/Errors.inc:1.15 --- pear/PhpDocumentor/phpDocumentor/Errors.inc:1.14 Sat Dec 8 03:43:02 2007 +++ pear/PhpDocumentor/phpDocumentor/Errors.inc Sun Dec 9 23:40:07 2007 @@ -31,7 +31,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 2001-2007 Gregory Beaver * @license http://www.opensource.org/licenses/lgpl-license.php LGPL - * @version CVS: $Id: Errors.inc,v 1.14 2007/12/08 03:43:02 ashnazg Exp $ + * @version CVS: $Id: Errors.inc,v 1.15 2007/12/09 23:40:07 ashnazg Exp $ * @filesource * @link http://www.phpdoc.org * @link http://pear.php.net/PhpDocumentor @@ -496,7 +496,8 @@ 'will now replace with category %s' , PDERROR_SOURCECODE_IGNORED => - 'sourcecode command-line option is ignored for PHP versions < 4.3.0' + 'sourcecode command-line option is ignored ' . + 'when your PHP build has no tokenizer support' , PDERROR_INHERITDOC_DONT_WORK_HERE => '{@inheritdoc} can only be used in the docblock of a child class' @@ -683,7 +684,7 @@ 'Unclosed %s tag in DocBlock, parsing will be incorrect' , PDERROR_TAG_NOT_HANDLED => - '"%s" tag is not available in PHP versions less than 4.3.0, tag ignored' + '"%s" tag is not available in PHP built without tokenizer support, tag ignored' , PDERROR_MALFORMED_TAG => '"%s" tag was used without any parameters, illegal'

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