-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
symfony http-foundation changes and drush_print() #3163
Comments
It is unclear to me from the PHP documentation when the headers set via the In the meantime, please consider using webflo/drupal-core-strict to avoid using new dependency versions before the Drupal core / Drush maintainers have had a chance to resolve problems. |
I don't know what is documented. This is what I'm seeing:
|
Seems like a good indication that we should replace |
I have received this error in using both php 7.1 and php 5.6 |
I'm not sure if @cosmicdreams is saying that http-foundation error is also broken in 5.6 (which I'd expect it to be) or if the proposed solution works in 5.6 (which I just tested, that it does):
|
See #3169 |
…ause the define actually calls fopen()
…ause the define actually calls fopen()
…ause the define actually calls fopen()
…backwards compatability, i.e. see drush_print_prompt()
…backwards compatability, i.e. see drush_print_prompt()
… compatability, i.e. see drush_print_prompt() (#3173)
I think this is fixed now? |
I'm not seeing this fix on the 8.x branch. |
No, I don't think this was back-ported. It would be a good idea to do so. |
I found the trail of PR's hard to follow. Eventually I found this, which appears to be the active PR to backport this to the 8.x branch: #3171 |
Symfony's latest release checks for headers_sent() before creating a session. PHP print's and thus drush_print() cause this check to fail, and exceptions to be thrown. The Symfony commit that causes this change is symfony/http-foundation@ef7a168
I have errors on site-install. The #drush slack channel also mentions errors in
drush updb
from this.I don't know the right fix.
I'm suggesting option 3 here in drush, which might be the biggest hack, but is the easiest solution. There are 9.x changes to drush_print() that have since been back out. Has this been looked at before? See https://github.com/drush-ops/drush/blame/master/includes/output.inc#L45
I have a different solution below, that fixes the Symfony http-foundation issue. I didn't create a proper PR yet, was hoping for some discussion.
The text was updated successfully, but these errors were encountered: