phpdox icon indicating copy to clipboard operation
phpdox copied to clipboard

phpdox terminates on files containing umlauts in filename

Open Eternal-Infinity opened this issue 10 years ago • 0 comments

Similar to #212

There is a file in our application that contains a umlaut (ü) in the name of the file (yeah, I know....). This causes a crash of phpdox. Even though no one should ever use umlauts in the filename or the classname (it is code from my predecessor here) maybe you could still look into this case, just in case.

The phpdox-output related to this:

[exec] Oups... phpDox encountered a problem and has terminated!
[exec]
[exec] It most likely means you've found a bug, so please file a report for this
[exec] and paste the following details and the stacktrace (if given) along:
[exec]
[exec] PHP Version: 5.4.5 (WINNT)
[exec] PHPDox Version: 0.8.0
[exec] Exception: TheSeer\phpDox\Collector\ProjectException (Code: 4)
[exec] Location: phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/collector/project/Project.php (Line 256)
[exec]
[exec] An error occured while saving the collected data: Internal Error: Unit 'R├╝cktritt' could not be saved (ns: , n: R├╝cktritt).
[exec]
[exec] #0 phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/CLI.php(161): TheSeer\phpDox\Application->runCollector()
[exec] #1 C:\Program Files\PHPTools\phpdox.phar(450): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec] Exception: TheSeer\phpDox\Collector\ProjectException (Code: 2)
[exec] Location: phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/collector/project/Project.php (Line 310)
[exec]
[exec] Internal Error: Unit 'R├╝cktritt' could not be saved (ns: , n: R├╝cktritt).
[exec]
[exec] #0 phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/Application.php(141): TheSeer\phpDox\Collector\Project->save()
[exec] #1 phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/CLI.php(161): TheSeer\phpDox\Application->runCollector()
[exec] #2 C:\Program Files\PHPTools\phpdox.phar(450): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec] Exception: TheSeer\fDOM\fDOMException (Code: 3)
[exec] Location: phar://C:/Program Files/PHPTools/phpdox.phar/vendor/theseer/fdomdocument/src/fDOMDocument.php (Line 234)
[exec]
[exec] Saving XML to file 'build/phpdox/classes/R├╝cktritt.xml' failed
[exec]
[exec] [XML-STRING] [Line: 0 - Column: 0] Fatal Error 6003: output conversion failed due to conv error, bytes 0xFC 0x63 0x6B 0x74
[exec] [XML-STRING] [Line: 0 - Column: 0] Error 1544: encoder error
[exec]
[exec]
[exec] #0 phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/collector/project/Project.php(243): TheSeer\phpDox\Collector\Project->saveUnit()
[exec] #1 phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/Application.php(141): TheSeer\phpDox\Collector\Project->save()
[exec] #2 phar://C:/Program Files/PHPTools/phpdox.phar/phpdox/CLI.php(161): TheSeer\phpDox\Application->runCollector()
[exec] #3 C:\Program Files\PHPTools\phpdox.phar(450): TheSeer\phpDox\CLI->run()
[exec]
[exec]
[exec]
[exec] Result: 1

Please note that "R├╝cktritt" is acctually "Rücktritt" in the application

Eternal-Infinity avatar May 12 '15 11:05 Eternal-Infinity