PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Tools and Utilities » PhpDocumentor » Bug #7773

"nothing parsed" error when parsing in a directory under "tutorials"

Details

Submitted2006-05-31 23:54 UTC
Fromnhyde at bigdrift dot com
StatusWont fix
PackagePhpDocumentor
PHP Version5.1.1
OSWindows XP SP2
Roadmaps(Not assigned)

Comments

[2006-05-31 23:54 UTC] nhyde at bigdrift dot com

Description:
------------
The error "nothing parsed" is thrown when parsing a dir within a directory named "tutorials".

Discovered this while attempting to run through the manual's sample files.

Test script:
---------------
cd PhpDocumentor-1.3.0RC6/tutorials/phpDocumentor
phpdoc -t docs -d examples

diff -r -U 3 PhpDocumentor-1.3.0RC6/phpDocumentor/Io.inc PhpDocumentor-1.3.0RC6.mod/phpDocumentor/Io.inc
--- PhpDocumentor-1.3.0RC6/phpDocumentor/Io.inc 2006-05-01 14:52:19.000000000 -0700
+++ PhpDocumentor-1.3.0RC6.mod/phpDocumentor/Io.inc 2006-05-31 16:44:39.037545408 -0700
@@ -435,9 +435,10 @@
$list = $tutorials = array();
foreach($filelist as $file)
{
- if (strpos($file,'tutorials/') !== false)
+ $child = str_replace(PHPDOCUMENTOR_BASE,'',$file);
+ if (strpos($child,'tutorials/') !== false)
{
- $tutedir = explode('/',substr($file,strpos($file,'tutorials/')));
+ $tutedir = explode('/',substr($child,strpos($child,'tutorials/')));
array_shift($tutedir);
if (count($tutedir) <= 3)
{

Expected result:
----------------
Parse the contents of the examples directory.

Actual result:
--------------
Error: nothing parsed.

[2006-09-13 00:41 UTC] martian at yahoo dot com

The docs should specify copying the sample files to another directory OUTSIDE of tutorials.