-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
headers_sent() returns true in php-cli mode #842
Comments
There may very well be hidden data that you cannot see in your text editor (non-printable characters, for example) or maybe whatever is reading the config is misinterpreting a BOM. Also, if there are any PHP errors in your config, it's possible it will detect this as input because PHP is outputting the error/warning. |
This seems more like a nextcloud issue and not a frankenphp issue. Closing this. |
Hi I forgot to link the thread from the Nextcloud support forums. There are no non-printable characters. I proved this using a hexdump. |
Updated the context to include the actual bug |
Ah apologies... That would have been useful.. |
What happened?
I'm running (trying) to run NextCloud on FrankenPHP, which has been working for the most part, but when running the included Console script, I get a syntax error that there is content before the
<?php
section and should be removed. But there isn't.Added by @withinboredom:
headers_sent()
returnstrue
in cli-mode.Build Type
Official static build
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Please see [phpinfo.php](https://nextcloud.jschneiderprojects.au/phpinfo.php) Please let me know when you have viewed this, so I can take it down
Relevant log output
The text was updated successfully, but these errors were encountered: