You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pico has a default index.php for composer users and a separate index.php.dist used for our pre-bundled releases. It's intended that both files are included in the API docs. The <parser><extensions> section in our phpdoc.xml therefore looks like the following:
When running phpDocumentor, the resulting files/ folder looks extremely weird:
files/index.html is the output file for index.php
files/index.php.txt is a copy of index.php
files/index.php.html is the output file for index.php.dist
files/index.php.dist.txt is a copy of index.php
This is definitely not expected by a user, but at least doesn't cause bigger problems. phpDocumentor seems to always remove the last file extension from the filename and adds .html for output files, and just adds .txt for the source code.
This will break phpDocumentor! It will indeed provide files/index.php.src.txt and files/index.php.dist.txt, but both output files will be written to files/index.php.html - depending on which of the files was parsed later, the prior gets overwritten silently.
phpDocumentor shouldn't modify the file extension for output files at all, or, to have a backwards-compatible solution, at least remember and check already created output files to avoid conflicts.
The text was updated successfully, but these errors were encountered:
This is an interesting use case which wasn't considered during the implementation for this item. I have no solution readily available but we should obviously fix this issue
@jaapio: Why has this been closed? This bug is still reproducible with phpDocumentor 2.9.0:
$ vendor/bin/phpdoc -f index.php -f index.php.dist -f index.php.src
…
Parsing /var/www/html/projects/private/pico/Workspace/index.php
No summary was found for this file
Parsing /var/www/html/projects/private/pico/Workspace/index.php.dist
No summary was found for this file
Parsing /var/www/html/projects/private/pico/Workspace/index.php.src
No summary was found for this file
…
$ ls -1 output/files/
index.html
index.php.dist.txt
index.php.html
index.php.src.txt
index.php.txt
$ grep '<h1><small></small>' output/files/index.php.html
<h1><small></small>index.php.src</h1>
Pico has a default
index.php
forcomposer
users and a separateindex.php.dist
used for our pre-bundled releases. It's intended that both files are included in the API docs. The<parser><extensions>
section in ourphpdoc.xml
therefore looks like the following:When running phpDocumentor, the resulting
files/
folder looks extremely weird:files/index.html
is the output file forindex.php
files/index.php.txt
is a copy ofindex.php
files/index.php.html
is the output file forindex.php.dist
files/index.php.dist.txt
is a copy ofindex.php
This is definitely not expected by a user, but at least doesn't cause bigger problems. phpDocumentor seems to always remove the last file extension from the filename and adds
.html
for output files, and just adds.txt
for the source code.Now consider multiple multi-part file extensions:
This will break phpDocumentor! It will indeed provide
files/index.php.src.txt
andfiles/index.php.dist.txt
, but both output files will be written tofiles/index.php.html
- depending on which of the files was parsed later, the prior gets overwritten silently.phpDocumentor shouldn't modify the file extension for output files at all, or, to have a backwards-compatible solution, at least remember and check already created output files to avoid conflicts.
The text was updated successfully, but these errors were encountered: