theseer / phpdox

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
http://phpdox.de
Other
600 stars 121 forks source link

Namespace Error [fDOMDocument.php:525] #416

Open leandromacedo opened 5 years ago

leandromacedo commented 5 years ago

Hi,

First of all, thanks for this great tool. It has been really handy in our project. We started using it recently but a strange bug is happening and I wasn't able to debug it.

When I run the phpdox command, I get:

[28.08.2019 - 09:43:55] The following file(s) had errors during processing and were excluded:
[28.08.2019 - 09:43:55]  - /srv/fence/fence/source/JReader.php (Namespace Error [fDOMDocument.php:525])
[28.08.2019 - 09:43:55]  - /srv/fence/fence/source/JProcessor.php (Namespace Error [fDOMDocument.php:525])

Both files have the proper namespace like the other files, so I checked fDOMDocument.php and it seems to be a problem in the DOMDocument::createElementNS() call. Any idea of why this is happening? I tried to change the name of these classes and files but the error persists.

As example, one of the namespace declaration is just:

<?php
namespace Fence;

class JProcessor
{
   // ...
}

Sorry if this was already answered somewhere else, I tried to search but didn't find anything.

Thanks a lot for your time.

theseer commented 2 years ago

Not sure if this issue is still relevant. Sorry for taking so long to notice it.

I cannot reproduce this though by quickly dumping your example into a test. Do you have any more pointers? :)