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

ID: 18121
Updated by: brett.bieber@gmail.com
Reported By: clicky at erebot dot net
Summary: Wrong path for documentation folder in PEAR2 docs
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: PEAR
Operating System: Ubuntu 10.04
Package Version: SVN
PHP Version: 5.3.3
-Assigned To:
+Assigned To: saltybeagle
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: saltybeagle
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




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

[2010-12-18 18:35:50] looksup

Description:
------------
The PEAR 2 rules at http://pear.php.net/manual/en/pear2cs.rules.php
state that the directory structure for a PEAR 2 package is:

PEAR2/Package_Name/
src/ <-- all role="php"
data/ <-- all role="data"
tests/ <-- all role="tests"
doc/ <-- all role="doc"
www/ <-- all role="www"
examples/ <-- role="doc" example files
(php executable files that exemplify package usage)

However, using Pyrus, the following structure is created instead:
PEAR2/Package_Name/
src/ <-- all role="php"
data/ <-- all role="data"
tests/ <-- all role="tests"
docs/ <-- all role="doc"
www/ <-- all role="www"
examples/ <-- role="doc" example files
(php executable files that exemplify package usage)

(Note the extra "s" at the end of the documentation folder)

Which one is correct : Pyrus or the documentation ?

Test script:
---------------
Using the latest available release of Pyrus (2.0.0a1) :
/tmp$ php pyrus.phar generate-pear2 FooBar
/tmp$ ls -1 FooBar

I could also reproduce this using a custom pyrus.phar made from the
latest SVN commit for Pyrus.

Expected result:
----------------
API-0.1.0
CREDITS
data
doc
examples
extrasetup.php
package_compatible.xml
package.xml
packagexmlsetup.php
README
RELEASE-0.1.0
src
stub.php
tests
www

Actual result:
--------------
API-0.1.0
CREDITS
data
docs <-- this is unexpected
examples
extrasetup.php
package_compatible.xml
package.xml
packagexmlsetup.php
README
RELEASE-0.1.0
src
stub.php
tests
www

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 7, '11 at 10:40p
activeJan 7, '11 at 10:40p
posts1
users1
websitepear.php.net

1 user in discussion

Brett Bieber: 1 post

People

Translate

site design / logo © 2022 Grokbase