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
Shebang prevents execution #49
Comments
What is your server configuration? Apache, nginx? Please provide us with output from |
Hosting-Provider: All-Inkl |
I finally found the reason for the shebang line at least for phars compiled on Windows. I will add an .gitattributes file which will enforce force the line endings, however, you should also fix your git config. |
Ok did a complete new clone of the git respo and rebuild the phar. |
I can not reproduce this... Anyone else? |
Do you need anything for investigation? FTP access? |
The shebang must be line 1 of the phar but it mustn't be written to screen. |
The question is why it mustn't be written. From my point of view it's normal php behavior ... the interpreter interprets everything inside of and outputs everything outside of it unchanged. |
I did an local installation of nginx and php7.0-fpm ... it works in such way that the shebang is ignored. |
Because WE do not want to see it (and php-cli does not print it by default).
In general, you are right on this one. However, there is one exception to this rule, the first line of a script will not be printed from CLI as long as it is a shebang. For php-cgi, fpm, ... it will get written.
It would be possible but then not be working anymore by calling
Which it should have been doing all the time, could you pinpoint the other installation why it is not ignored over there? |
Ok I did a local test with my apache and fpm - it works (ok Composer isn't get executed but it's not executed in any other of my test installation). |
Would be interesting to find the reason though, as I consider All-Inkl as a Hoster with a good reputation. |
Please don't worry too much about this stuff in a development build 😉 |
Well, this is something that will not change even for the final build. It is the fundamental base. |
It'll be nice if someone can confirm that all-inkl behavior. |
I may be able to test, but someone needs to provide me with the |
This is obsolete with the latest version (see https://github.com/contao/contao-manager/tree/develop) |
The bundle.js gets a shebang (contao-manager.phar is used) so it's throwing an js syntax error.
Also the contao-manager.phar generates html that has a shebang on beginning which results in faulty html.
The text was updated successfully, but these errors were encountered: