FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=13800&edit=1

ID: 13800
Updated by: demon.gene@gmail.com
Reported By: wrzasq at gmail dot com
Summary: Invalid tutorials tree generation
-Status: Open
+Status: Verified
Type: Bug
Package: PhpDocumentor
Operating System: Irrelevant
Package Version: 1.4.2
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

-Status: Open
+Status: Verified
Running current phpDoc SVN on PHP 5.2.10 against the opentibia trunk at
the supplied Sourceforge URL, I do see at least two instances of the
described behavior.

Incorrect structure:
* POT
o Basics
o Database
+ DAO objects
# Accounts
# Players
# Guilds
+ List objects
# Accounts
# Players
# Guilds
o data/ directory resources
+ Global resources
+ Cache drivers
o OTAdmin client
+ Global resources
+ Cache drivers
o Additional routines
+ Server online status
o POT in depth
+ Server online status
o Additional info
+ PHK package
+ PHAR package
+ Deprecations
+ Creating framework
+ AAC scripts
o Troubleshooting
+ PHK package
+ PHAR package
+ Deprecations
+ Creating framework
+ AAC scripts


Correct structure, after applying Converter.inc fix:
* POT
o Basics
o Database
+ DAO objects
# Accounts
# Players
# Guilds
+ List objects
o data/ directory resources
+ Global resources
+ Cache drivers
o OTAdmin client
o Additional routines
+ Server online status
o POT in depth
o Additional info
+ PHK package
+ PHAR package
+ Deprecations
+ Creating framework
+ AAC scripts
o Troubleshooting


Previous Comments:
------------------------------------------------------------------------

[2008-04-29 10:26:16] wrzasq

Description:
------------
Tutorials tree is added to tutorials which have no children
from previous same level tutorial.

For example if you wish to have tree:

Tut A
-- Tut B
-- Tut B1
`-- Tut B2
`-- Tut C

You will have:

Tut A
-- Tut B
-- Tut B1
`-- Tut B2 `-- Tut C
-- Tut B1
`-- Tut B2

It is problem with HTML converter.

You can reproduce this bug using
http://opentibia.svn.sourceforge.net/viewvc/opentibia/pot/trunk/
tutorials.

Here is a solution:

In Converter.inc, line 1994 replace:
$res['tutorial'] =
$this->tutorials[$btut->package][$btut->subpackage]
[$btut->tutorial_type][$btut->name];
with:
$res = array('tutorial' =>
$this->tutorials[$btut->package][$btut->subpackage]
[$btut->tutorial_type][$btut->name]);

Description:

In this scope $res wasn't reset after each iteration so it
contained
previous sibling's tree since there was only if() action when
new tree
existed.

------------------------------------------------------------------------

Search Discussions

  • Demon Gene at Aug 30, 2009 at 7:57 am
    Edit report at http://pear.php.net/bugs/bug.php?id=13800&edit=1

    ID: 13800
    Updated by: demon.gene@gmail.com
    Reported By: wrzasq at gmail dot com
    Summary: Invalid tutorials tree generation
    -Status: Verified
    +Status: Assigned
    Type: Bug
    Package: PhpDocumentor
    Operating System: Irrelevant
    Package Version: 1.4.2
    PHP Version: Irrelevant
    -Assigned To:
    +Assigned To: ashnazg
    Roadmap Versions:
    New Comment:

    -Status: Verified
    +Status: Assigned
    -Assigned To:
    +Assigned To: ashnazg



    Previous Comments:
    ------------------------------------------------------------------------

    [2009-08-30 09:57:00] ashnazg

    -Status: Open
    +Status: Verified
    Running current phpDoc SVN on PHP 5.2.10 against the opentibia trunk at
    the supplied Sourceforge URL, I do see at least two instances of the
    described behavior.

    Incorrect structure:
    * POT
    o Basics
    o Database
    + DAO objects
    # Accounts
    # Players
    # Guilds
    + List objects
    # Accounts
    # Players
    # Guilds
    o data/ directory resources
    + Global resources
    + Cache drivers
    o OTAdmin client
    + Global resources
    + Cache drivers
    o Additional routines
    + Server online status
    o POT in depth
    + Server online status
    o Additional info
    + PHK package
    + PHAR package
    + Deprecations
    + Creating framework
    + AAC scripts
    o Troubleshooting
    + PHK package
    + PHAR package
    + Deprecations
    + Creating framework
    + AAC scripts


    Correct structure, after applying Converter.inc fix:
    * POT
    o Basics
    o Database
    + DAO objects
    # Accounts
    # Players
    # Guilds
    + List objects
    o data/ directory resources
    + Global resources
    + Cache drivers
    o OTAdmin client
    o Additional routines
    + Server online status
    o POT in depth
    o Additional info
    + PHK package
    + PHAR package
    + Deprecations
    + Creating framework
    + AAC scripts
    o Troubleshooting

    ------------------------------------------------------------------------

    [2008-04-29 10:26:16] wrzasq

    Description:
    ------------
    Tutorials tree is added to tutorials which have no children
    from previous same level tutorial.

    For example if you wish to have tree:

    Tut A
    -- Tut B
    -- Tut B1
    `-- Tut B2
    `-- Tut C

    You will have:

    Tut A
    -- Tut B
    -- Tut B1
    `-- Tut B2 `-- Tut C
    -- Tut B1
    `-- Tut B2

    It is problem with HTML converter.

    You can reproduce this bug using
    http://opentibia.svn.sourceforge.net/viewvc/opentibia/pot/trunk/
    tutorials.

    Here is a solution:

    In Converter.inc, line 1994 replace:
    $res['tutorial'] =
    $this->tutorials[$btut->package][$btut->subpackage]
    [$btut->tutorial_type][$btut->name];
    with:
    $res = array('tutorial' =>
    $this->tutorials[$btut->package][$btut->subpackage]
    [$btut->tutorial_type][$btut->name]);

    Description:

    In this scope $res wasn't reset after each iteration so it
    contained
    previous sibling's tree since there was only if() action when
    new tree
    existed.

    ------------------------------------------------------------------------
  • Demon Gene at Aug 30, 2009 at 8:09 am
    Edit report at http://pear.php.net/bugs/bug.php?id=13800&edit=1

    ID: 13800
    Updated by: demon.gene@gmail.com
    Reported By: wrzasq at gmail dot com
    Summary: Invalid tutorials tree generation
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: PhpDocumentor
    Operating System: Irrelevant
    Package Version: 1.4.2
    PHP Version: Irrelevant
    Assigned To: ashnazg
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +Status: Closed
    The suggested change in Converter.inc solves the issue in my tests.
    Committed to SVN.


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-08-30 09:57:27] ashnazg

    -Status: Verified
    +Status: Assigned
    -Assigned To:
    +Assigned To: ashnazg


    ------------------------------------------------------------------------

    [2009-08-30 09:57:00] ashnazg

    -Status: Open
    +Status: Verified
    Running current phpDoc SVN on PHP 5.2.10 against the opentibia trunk at
    the supplied Sourceforge URL, I do see at least two instances of the
    described behavior.

    Incorrect structure:
    * POT
    o Basics
    o Database
    + DAO objects
    # Accounts
    # Players
    # Guilds
    + List objects
    # Accounts
    # Players
    # Guilds
    o data/ directory resources
    + Global resources
    + Cache drivers
    o OTAdmin client
    + Global resources
    + Cache drivers
    o Additional routines
    + Server online status
    o POT in depth
    + Server online status
    o Additional info
    + PHK package
    + PHAR package
    + Deprecations
    + Creating framework
    + AAC scripts
    o Troubleshooting
    + PHK package
    + PHAR package
    + Deprecations
    + Creating framework
    + AAC scripts


    Correct structure, after applying Converter.inc fix:
    * POT
    o Basics
    o Database
    + DAO objects
    # Accounts
    # Players
    # Guilds
    + List objects
    o data/ directory resources
    + Global resources
    + Cache drivers
    o OTAdmin client
    o Additional routines
    + Server online status
    o POT in depth
    o Additional info
    + PHK package
    + PHAR package
    + Deprecations
    + Creating framework
    + AAC scripts
    o Troubleshooting

    ------------------------------------------------------------------------

    [2008-04-29 10:26:16] wrzasq

    Description:
    ------------
    Tutorials tree is added to tutorials which have no children
    from previous same level tutorial.

    For example if you wish to have tree:

    Tut A
    -- Tut B
    -- Tut B1
    `-- Tut B2
    `-- Tut C

    You will have:

    Tut A
    -- Tut B
    -- Tut B1
    `-- Tut B2 `-- Tut C
    -- Tut B1
    `-- Tut B2

    It is problem with HTML converter.

    You can reproduce this bug using
    http://opentibia.svn.sourceforge.net/viewvc/opentibia/pot/trunk/
    tutorials.

    Here is a solution:

    In Converter.inc, line 1994 replace:
    $res['tutorial'] =
    $this->tutorials[$btut->package][$btut->subpackage]
    [$btut->tutorial_type][$btut->name];
    with:
    $res = array('tutorial' =>
    $this->tutorials[$btut->package][$btut->subpackage]
    [$btut->tutorial_type][$btut->name]);

    Description:

    In this scope $res wasn't reset after each iteration so it
    contained
    previous sibling's tree since there was only if() action when
    new tree
    existed.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 30, '09 at 7:57a
activeAug 30, '09 at 8:09a
posts3
users1
websitepear.php.net

1 user in discussion

Demon Gene: 3 posts

People

Translate

site design / logo © 2022 Grokbase