PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Tools and Utilities » PhpDocumentor » Bug #8443

File level API pages are not created

Details

Submitted2006-08-15 08:03 UTC
Frompear dot 20 dot fab at spamgourmet dot com
StatusBogus
PackagePhpDocumentor
PHP Version5.1.4
OSFC5
Roadmaps(Not assigned)

Comments

[2006-08-15 08:03 UTC] pear dot 20 dot fab at spamgourmet dot com

Description:
------------
When creating an API with PhpDocumentor, it creates correctly pages for classes but the pages for for files just contain an error.

PhpDocumentor command line:
$ phpdoc -d $INPUT_DIR -t $OUTPUT_DIR -q on -o HTML:frames:phphtmllib -dn MyPackage -ti "MyTitle" > /dev/null

Test script:
---------------
<?php

?>

Expected result:
----------------
A valid API page...

Actual result:
--------------
Parse error: syntax error, unexpected T_STRING in /my/path/to/_test.php.html on line 1

[2006-10-22 01:53 UTC] pear at lehi dot ath dot cx

I just installed PHPDocumentor 1.3.0RC6 by following the INSTALL instructions. Everything seems to function properly, except when I try to view documentation on individual files. I believe the problem is because the pages being generated are xhtml pages and have the <?xml version="1.0" encoding="iso-8859-1"?> at the beginning of the document. I know this is causing the problem because removing that first line makes the page come up just fine.

Even though the page is just html, apache is interpreting it as php because it is called something like _filename.php.html. I think a possible solution would be to rename the file to something like _filename_php.html so that the web server doesn't get confused what file type it is.