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
Warning: declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in string code #1076
Comments
What PHP version, phan version? What file is that warning emitted from? What are the steps to reproduce? The PHP in settings used? |
Sorry. PHP 7.1.8, phan 0.9.4. Call stack:
The only use of |
declare(encoding=...) was probably part of the project being parsed, e.g. vendor. The lack of multibyte support probably affects the strings (e.g. string literals, unicode class names) that ast\parse_code('', version) returns. Maybe printing a suppressable message to stderr if a lack of multibyte support is detected would help |
Indeed, I found occurrences in my vendor folder:
|
This still should be fixed, but: You may want to look at https://github.com/phan/phan/wiki/Speeding-up-Phan-Analysis#3-reduce-the-number-of-files-phan-parses. E.g. add the following section to your
|
Confirming seeing this warning. +1 for clearer error messages in general. Fixing the |
Thanks for the fix! |
This may be true, but it should be trapped and reported better, along with advice on how to fix.
The text was updated successfully, but these errors were encountered: