🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 通过pear安装 #### 第一步:安装pear 使用dos窗口进入php安装目录,有个文件叫go-pear.bat,如果没有,建议到网上下载 [go-pear.phar](http://pear.php.net/go-pear.phar),然后在dos窗口下运行 go-pear.phar, 从而安装pear。 ~~~ php go-pear.phar ~~~ 输出: ~~~ D:\phpStudy\PHPTutorial\php\php-7.2.1-nts>php go-pear.phar Are you installing a system-wide PEAR or a local copy? (system|local) [system] : Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of them or simply press Enter to accept these locations. 1. Installation base ($prefix) : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts 2. Temporary directory for processing : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\tmp 3. Temporary directory for downloads : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\tmp 4. Binaries directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts 5. PHP code directory ($php_dir) : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\pear 6. Documentation directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\docs 7. Data directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\data 8. User-modifiable configuration files directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\cfg 9. Public Web Files directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\www 10. System manual pages directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\man 11. Tests directory : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts\tests 12. Name of configuration file : C:\Windows\pear.ini 13. Path to CLI php.exe : D:\phpStudy\PHPTutorial\php\ php-7.2.1-nts 1-13, 'all' or Enter to continue: Beginning install... Configuration written to C:\Windows\pear.ini... Initialized registry... Preparing to install... installing phar://D:/phpStudy/PHPTutorial/php/php-7.2.1-nts/go-pear.phar/PEAR/go -pear-tarballs/Archive_Tar-1.4.3.tar... installing phar://D:/phpStudy/PHPTutorial/php/php-7.2.1-nts/go-pear.phar/PEAR/go -pear-tarballs/Console_Getopt-1.4.1.tar... installing phar://D:/phpStudy/PHPTutorial/php/php-7.2.1-nts/go-pear.phar/PEAR/go -pear-tarballs/PEAR-1.10.5.tar... installing phar://D:/phpStudy/PHPTutorial/php/php-7.2.1-nts/go-pear.phar/PEAR/go -pear-tarballs/Structures_Graph-1.1.1.tar... installing phar://D:/phpStudy/PHPTutorial/php/php-7.2.1-nts/go-pear.phar/PEAR/go -pear-tarballs/XML_Util-1.4.2.tar... install ok: channel://pear.php.net/Archive_Tar-1.4.3 install ok: channel://pear.php.net/Console_Getopt-1.4.1 install ok: channel://pear.php.net/Structures_Graph-1.1.1 install ok: channel://pear.php.net/XML_Util-1.4.2 install ok: channel://pear.php.net/PEAR-1.10.5 PEAR: Optional feature webinstaller available (PEAR's web-based installer) PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer) PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer) PEAR: To install optional features use "pear install pear/PEAR#featurename" ****************************************************************************** WARNING! The include_path defined in the currently used php.ini does not contain the PEAR PHP directory you just specified: <D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear> If the specified directory is also not in the include_path used by your scripts, you will have problems getting any PEAR packages working. Would you like to alter php.ini <D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php.i ni>? [Y/n] : y php.ini <D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php.ini> include_path updated. Current include path : .;C:\php\pear Configured directory : D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear Currently used php.ini (guess) : D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php.ini Press Enter to continue: ** WARNING! Old version found at D:\phpStudy\PHPTutorial\php\php-7.2.1-nts, please remove it or be sure to use the new d:\phpstudy\phpt utorial\php\php-7.2.1-nts\pear.bat command The 'pear' command is now at your service at d:\phpstudy\phptutorial\php\php-7.2.1-nts\pear.bat * WINDOWS ENVIRONMENT VARIABLES * For convenience, a REG file is available under D:\phpStudy\PHPTutorial\php\php-7.2.1-ntsPEAR_ENV.reg . This file creates ENV variables for the current user. Double-click this file to add it to the current user registry. ~~~ 鼠标双击程序: ~~~ D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\PEAR_ENV.reg ~~~ ![](https://box.kancloud.cn/3b41fb9d5ecdf6360ae7c3cf2ce36840_572x184.png) ![](https://box.kancloud.cn/e41133b9b657bd4f5fcdfec99c16f171_572x139.png) #### 第二步:安装phpdoc ~~~ Pear install phpDocumentor ~~~ 输出: ~~~ D:\phpStudy\PHPTutorial\php\php-7.2.1-nts>Pear install phpDocumentor WARNING: "pear/PhpDocumentor" is deprecated in favor of "channel://pear.phpdoc.org/phpdocumentor" WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update Did not download optional dependencies: pear/XML_Beautifier, use --alldeps to download automatically pear/PhpDocumentor can optionally use package "pear/XML_Beautifier" (version >= 1.1) downloading PhpDocumentor-1.4.4.tgz ... Starting to download PhpDocumentor-1.4.4.tgz (1,554,970 bytes) ..........................................................done: 1,554,970 bytes install ok: channel://pear.php.net/PhpDocumentor-1.4.4 D:\phpStudy\PHPTutorial\php\php-7.2.1-nts> ~~~ 在phpDocumentor成功安装后,php安装目录下会多出来一个phpdoc.bat。 这个文件就是我们用来生成文档的批处理文件。 在phpdoc.bat所在目录下,输入: ~~~ Phpdoc –h ~~~ 会得到一个phpDocumentor的详细参数列表。先看看最重要的几个吧。 -d 这个目录代表着需要生成文档的原始php文件目录(注意是目录) -t 这个目录代表着生成的文档存放目录 -o 这个参数代表着生成的文档格式,例如html格式,参数就是 HTML:frames:phpedit ~~~ constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\DescHTML.inc on line 359 PHP Warning: Declaration of parserList::Convert(&$c) should be compatible with parserStringWithInlineTags::Convert(&$converter, $postp rocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\DescHTML.inc on line 421 Warning: Declaration of parserList::Convert(&$c) should be compatible with parserStringWithInlineTags::Convert(&$converter, $postproces s = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\DescHTML.inc on line 421 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserDocBlock has a de precated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDocBlock.inc on line 129 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserDocBlock has a depreca ted constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDocBlock.inc on line 129 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserVar has a depreca ted constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 1415 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserVar has a deprecated c onstructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 1415 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserConst has a depre cated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 1578 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserConst has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 1578 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserMethod has a depr ecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 1628 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserMethod has a deprecate d constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 1628 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserPackagePage has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 2027 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserPackagePage has a depr ecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 2027 PHP Warning: Declaration of parserPackagePage::Convert(&$c) should be compatible with parserStringWithInlineTags::Convert(&$converter, $postprocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 2052 Warning: Declaration of parserPackagePage::Convert(&$c) should be compatible with parserStringWithInlineTags::Convert(&$converter, $pos tprocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 2052 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserTutorial has a de precated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 2059 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserTutorial has a depreca ted constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserElements.inc on line 2059 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Parser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Parser.inc on line 338 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Parser has a deprecated cons tructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Parser.inc on line 338 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ppageParser has a depre cated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Parser.inc on line 3026 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ppageParser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Parser.inc on line 3026 PHP Warning: Declaration of phpDocumentorTWordParser::backupPos() should be compatible with WordParser::backupPos($word) in D:\phpStud y\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTWordParser.inc on line 385 Warning: Declaration of phpDocumentorTWordParser::backupPos() should be compatible with WordParser::backupPos($word) in D:\phpStudy\PHP Tutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTWordParser.inc on line 385 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpDocumentorTParser ha s a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on li ne 56 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpDocumentorTParser has a d eprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 56 PHP Warning: Declaration of phpDocumentorTParser::handleDesc($desc) should be compatible with Parser::handleDesc($word, $pevent) in D: \phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::handleDesc($desc) should be compatible with Parser::handleDesc($word, $pevent) in D:\phpS tudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::handleTags($tags) should be compatible with Parser::handleTags($word, $pevent) in D: \phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::handleTags($tags) should be compatible with Parser::handleTags($word, $pevent) in D:\phpS tudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::defaultTagHandler($name, $value) should be compatible with Parser::defaultTagHandler ($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::defaultTagHandler($name, $value) should be compatible with Parser::defaultTagHandler($wor d) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::packageTagHandler($name, $value) should be compatible with Parser::packageTagHandler ($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::packageTagHandler($name, $value) should be compatible with Parser::packageTagHandler($wor d) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::exampleTagHandler($name, $value) should be compatible with Parser::exampleTagHandler ($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::exampleTagHandler($name, $value) should be compatible with Parser::exampleTagHandler($wor d) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::categoryTagHandler($name, $value) should be compatible with Parser::categoryTagHandl er($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::categoryTagHandler($name, $value) should be compatible with Parser::categoryTagHandler($w ord) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::globalTagHandler($name, $value) should be compatible with Parser::globalTagHandler($ word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::globalTagHandler($name, $value) should be compatible with Parser::globalTagHandler($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::staticvarTagHandler($name, $value) should be compatible with Parser::staticvarTagHan dler($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::staticvarTagHandler($name, $value) should be compatible with Parser::staticvarTagHandler( $word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::usesTagHandler($name, $value) should be compatible with Parser::usesTagHandler($word ) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::usesTagHandler($name, $value) should be compatible with Parser::usesTagHandler($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::paramTagHandler($name, $value) should be compatible with Parser::paramTagHandler($wo rd) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::paramTagHandler($name, $value) should be compatible with Parser::paramTagHandler($word) i n D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::returnTagHandler($name, $value) should be compatible with Parser::returnTagHandler($ word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::returnTagHandler($name, $value) should be compatible with Parser::returnTagHandler($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::varTagHandler($name, $value) should be compatible with Parser::varTagHandler($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::varTagHandler($name, $value) should be compatible with Parser::varTagHandler($word) in D: \phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::propertyTagHandler($name, $value) should be compatible with Parser::propertyTagHandl er($word) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::propertyTagHandler($name, $value) should be compatible with Parser::propertyTagHandler($w ord) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentorTParser::configWordParser(&$data) should be compatible with Parser::configWordParser($e) in D :\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 Warning: Declaration of phpDocumentorTParser::configWordParser(&$data) should be compatible with Parser::configWordParser($e) in D:\php Study\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\phpDocumentorTParser.inc on line 2945 PHP Warning: Declaration of phpDocumentor_HighlightWordParser::setup(&$input, &$parser) should be compatible with phpDocumentorTWordPa rser::setup(&$input) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 208 Warning: Declaration of phpDocumentor_HighlightWordParser::setup(&$input, &$parser) should be compatible with phpDocumentorTWordParser: :setup(&$input) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 208 PHP Warning: Declaration of phpDocumentor_HighlightWordParser::backupPos($last_token, $is_pos = false) should be compatible with phpDo cumentorTWordParser::backupPos() in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on l ine 208 Warning: Declaration of phpDocumentor_HighlightWordParser::backupPos($last_token, $is_pos = false) should be compatible with phpDocumen torTWordParser::backupPos() in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 2 08 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpDocumentor_Highlight Parser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc o n line 226 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpDocumentor_HighlightParse r has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on lin e 226 PHP Warning: Declaration of phpDocumentor_HighlightParser::parse(&$parse_data, &$converter, $inlinesourceparse = false, $class = false , $linenum = false, $filesourcepath = false) should be compatible with phpDocumentorTParser::parse(&$parse_data, $path, $base = 0, $pac kages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 2602 Warning: Declaration of phpDocumentor_HighlightParser::parse(&$parse_data, &$converter, $inlinesourceparse = false, $class = false, $li nenum = false, $filesourcepath = false) should be compatible with phpDocumentorTParser::parse(&$parse_data, $path, $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 2602 PHP Warning: Declaration of phpDocumentor_HighlightParser::commonDocBlock() should be compatible with phpDocumentorTParser::commonDocB lock($word, $pevent, $deschandler) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 2602 Warning: Declaration of phpDocumentor_HighlightParser::commonDocBlock() should be compatible with phpDocumentorTParser::commonDocBlock( $word, $pevent, $deschandler) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 2602 PHP Warning: Declaration of phpDocumentor_HighlightParser::setupStates($inlinesourceparse, $class) should be compatible with phpDocume ntorTParser::setupStates() in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 26 02 Warning: Declaration of phpDocumentor_HighlightParser::setupStates($inlinesourceparse, $class) should be compatible with phpDocumentorT Parser::setupStates() in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\HighlightParser.inc on line 2602 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpDocumentor_TutorialH ighlightParser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\TutorialHighl ightParser.inc on line 69 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpDocumentor_TutorialHighli ghtParser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\TutorialHighlightP arser.inc on line 69 PHP Warning: Declaration of phpDocumentor_TutorialHighlightParser::parse($parse_data, &$converter, $filesourcepath = false, $linenum = false) should be compatible with Parser::parse(&$parse_data, $path, $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7 .2.1-nts\pear\PhpDocumentor\phpDocumentor\TutorialHighlightParser.inc on line 527 Warning: Declaration of phpDocumentor_TutorialHighlightParser::parse($parse_data, &$converter, $filesourcepath = false, $linenum = fals e) should be compatible with Parser::parse(&$parse_data, $path, $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1- nts\pear\PhpDocumentor\phpDocumentor\TutorialHighlightParser.inc on line 527 PHP Warning: Declaration of phpDocumentor_TutorialHighlightParser::setupStates($parsedata) should be compatible with Parser::setupStat es() in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\TutorialHighlightParser.inc on line 527 Warning: Declaration of phpDocumentor_TutorialHighlightParser::setupStates($parsedata) should be compatible with Parser::setupStates() in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\TutorialHighlightParser.inc on line 527 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ObjectWordParser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDescCleanup.inc on line 130 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ObjectWordParser has a depre cated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDescCleanup.inc on line 130 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserDescParser has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDescCleanup.inc on line 298 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserDescParser has a depre cated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDescCleanup.inc on line 298 PHP Warning: Declaration of parserDescParser::parse(&$parse_data, $sdesc = false, $ind_type = 'parserDesc') should be compatible with Parser::parse(&$parse_data, $path, $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDoc umentor\ParserDescCleanup.inc on line 1486 Warning: Declaration of parserDescParser::parse(&$parse_data, $sdesc = false, $ind_type = 'parserDesc') should be compatible with Parse r::parse(&$parse_data, $path, $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocument or\ParserDescCleanup.inc on line 1486 PHP Warning: Declaration of parserDescParser::setupStates($sdesc) should be compatible with Parser::setupStates() in D:\phpStudy\PHPTu torial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDescCleanup.inc on line 1486 Warning: Declaration of parserDescParser::setupStates($sdesc) should be compatible with Parser::setupStates() in D:\phpStudy\PHPTutoria l\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\ParserDescCleanup.inc on line 1486 PHP Warning: Declaration of parserCData::Convert(&$c, $postprocess = true) should be compatible with parserStringWithInlineTags::Conve rt(&$converter, $postprocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Packag ePageElements.inc on line 99 Warning: Declaration of parserCData::Convert(&$c, $postprocess = true) should be compatible with parserStringWithInlineTags::Convert(&$ converter, $postprocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\PackagePage Elements.inc on line 99 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserXMLDocBookTag has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\PackagePageElements.inc on line 122 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserXMLDocBookTag has a de precated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\PackagePageElements.inc on line 122 PHP Warning: Declaration of parserXMLDocBookTag::Convert(&$c, $postprocess = true) should be compatible with parserStringWithInlineTag s::Convert(&$converter, $postprocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumento r\PackagePageElements.inc on line 458 Warning: Declaration of parserXMLDocBookTag::Convert(&$c, $postprocess = true) should be compatible with parserStringWithInlineTags::Co nvert(&$converter, $postprocess = true, $trim = true) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Pac kagePageElements.inc on line 458 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserEntity has a depr ecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\PackagePageElements.inc on line 479 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; parserEntity has a deprecate d constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\PackagePageElements.inc on line 479 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; XMLPackagePageParser ha s a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\XMLpackagePageParser.inc on li ne 98 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; XMLPackagePageParser has a d eprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\XMLpackagePageParser.inc on line 98 PHP Warning: Declaration of XMLPackagePageParser::parse($parse_data, $tutorial) should be compatible with Parser::parse(&$parse_data, $path, $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\XMLpackagePageParser .inc on line 643 Warning: Declaration of XMLPackagePageParser::parse($parse_data, $tutorial) should be compatible with Parser::parse(&$parse_data, $path , $base = 0, $packages = false) in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\XMLpackagePageParser.inc on line 643 PHP Warning: Declaration of methodLink::addLink($class, $path, $fileAlias, $name, $package, $subpackage, $category = false) should be compatible with abstractLink::addLink($path, $fileAlias, $name, $package, $subpackage, $category = false) in D:\phpStudy\PHPTutorial\ph p\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\LinkClasses.inc on line 267 Warning: Declaration of methodLink::addLink($class, $path, $fileAlias, $name, $package, $subpackage, $category = false) should be compa tible with abstractLink::addLink($path, $fileAlias, $name, $package, $subpackage, $category = false) in D:\phpStudy\PHPTutorial\php\php -7.2.1-nts\pear\PhpDocumentor\phpDocumentor\LinkClasses.inc on line 267 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Converter has a depreca ted constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Converter.inc on line 74 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Converter has a deprecated c onstructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Converter.inc on line 74 PHP Warning: Declaration of __dummyConverter::setTemplateDir() should be compatible with Converter::setTemplateDir($dir) in D:\phpStud y\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Converter.inc on line 5486 Warning: Declaration of __dummyConverter::setTemplateDir() should be compatible with Converter::setTemplateDir($dir) in D:\phpStudy\PHP Tutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Converter.inc on line 5486 PHP Warning: Declaration of __dummyConverter::setTargetDir() should be compatible with Converter::setTargetDir($dir) in D:\phpStudy\PH PTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Converter.inc on line 5486 Warning: Declaration of __dummyConverter::setTargetDir() should be compatible with Converter::setTargetDir($dir) in D:\phpStudy\PHPTuto rial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Converter.inc on line 5486 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty.class.php on line 7 3 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated cons tructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty.class.php on line 73 PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RecordWarning has a dep recated constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Errors.inc on line 746 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RecordWarning has a deprecat ed constructor in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear\PhpDocumentor\phpDocumentor\Errors.inc on line 746 PHP Version 7.2.1 phpDocumentor version 1.4.4 Parsing configuration file phpDocumentor.ini... (found in D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\data/PhpDocumentor/)... done Maximum memory usage set at 256M after considering php.ini... using tokenizer Parser a target directory must be specified try phpdoc -h D:\phpStudy\PHPTutorial\php\php-7.2.1-nts> ~~~ 第三步:生成文档 生成文档的命令就是: ~~~ phpdoc -d [SOURCE_PATH] -t [TARGET_PATH] ~~~ #### 查看PEAR安装的包 PHP安装目录下的pear目录 ~~~ D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear>pear list INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE Archive_Tar 1.4.3 stable Console_Getopt 1.4.1 stable PEAR 1.10.5 stable PhpDocumentor 1.4.4 stable Structures_Graph 1.1.1 stable XML_Util 1.4.2 stable D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\pear> ~~~