Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to handle relative file paths in phpstans checkstyle report in combination with full paths from other reports. #57

Open
calbrecht opened this issue Aug 13, 2018 · 0 comments

Comments

@calbrecht
Copy link
Member

Parsing a checkstyle report from phpstan together with reports that have absolute paths for files results in lot of warnings and finally in out of memory error.

Warning: strrpos(): Offset is greater than the length of haystack string 
in /home/user/path/to/PHP_CodeBrowser/src/PHPCodeBrowser/View/ViewAbstract.php on line 228
...
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98566152 bytes) 
in /home/user/path/to/PHP_CodeBrowser/src/PHPCodeBrowser/View/ViewAbstract.php on line 230```

The reason is the common ancestor logic where phpcb tries to find a common ancestor between relative and full paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant