-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Strange characters after artisan optimize #14197
Comments
What does your compiled file look like? |
Looks fine to me. Did you compile that file on the same server you're running the code on? |
What happens if you run optimize with the force flag? |
Yes.
The same results. |
It has probably something to do with the file encoding. Your $ file -I compiled.php
# compiled.php: application/octet-stream; charset=binary When ran on a different PHP file I get |
Try creating the file yourself with the contents copied over. I'm not convinced the file is what it should be 😅 |
Just a guess but it seems to me that the file is being interpreted as UTF-16BE (BE = Big Endian) and not UTF-8. Though, I'm not sure why. Perhaps there's a setting your php.ini file that's causing this? Try running This is what the file looks like when interpreting as UTF-16BE: |
That's definitely strange. Not sure what the issue is. |
I discover something, when I fire compiled.php from PHP 5.6: and PHP 5.5 PHP 7.0 - the same problem |
Hello everyone, any updates on this issue? Still facing the problem? is it fixed? Don't seem to be able to regenerate and the thread makes it look like it happens randomly :) |
After this update:
This issue is not existing anymore. I still have no idea why. |
Let's close it then since there were zero progress anyways :) Please feel free to ping me if the problem re-appeared in a 5.3 installation. |
Hello,
I have issue on my vagrant box (php7dev), after
php artisan optimize
(via composer install/update) I got strange characters on any page (CLI/phpunit too):Everything is fine when I remove file:
Laravel Framework version 5.2.39
PHP 5.6.16-dev (cli) (built: Oct 22 2015 16:13:30)
Debian GNU/Linux 8.2 (jessie)
Composer version 1.1.3 2016-06-26 15:42:08
Can someone explain this? I can't reproduce this on my shared hosting.
Thanks
The text was updated successfully, but these errors were encountered: