Skip to content
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

Backdrop Recipe PHP 5.3 Incompatibility #418

Closed
alexfinnarn opened this issue Oct 18, 2017 · 2 comments
Closed

Backdrop Recipe PHP 5.3 Incompatibility #418

alexfinnarn opened this issue Oct 18, 2017 · 2 comments
Assignees
Labels
improvement Things work OK but suggestion to make them better
Milestone

Comments

@alexfinnarn
Copy link

Bug Report

Tell us about your setup

  • Lando v3.0.0-beta.19
  • Mac OS X 10.12.6
  • Backdrop 1.8.0

Tell us about your .lando.yml

name: backdrop
recipe: backdrop
config:
  webroot: .
  php: '5.3'
  backdrush: 'dev'

Tell us about the command you were running

lando start || lando rebuild

Tell us about the error you got

PHP Parse error:  syntax error, unexpected '[' in phar:///tmp/drush.phar/includes/startup.inc on line 63
PHP Stack trace:
PHP   1. {main}() /tmp/drush.phar:0
PHP   2. require() /tmp/drush.phar:10
.....
  [UnexpectedValueException]                                                  
  Could not parse version constraint stable: Invalid version string "stable"  

Tell us generally about your bug

I think this relates to the short array syntax introduced in PHP 5.4 and the version of "backdrush" on my site. I tried the "dev" version of "backdrush" but still got the same error.

Maybe have a "backdrush:none" option if Backdrop's version of Drush is finnicky...or turn it off by default.

The "UnexpectedValueException" seems like this could be entirely a backdrush thing as I had a different string than "stable" and still get that error without the "backdrush" key in my .lando.yml file.

@serundeputy
Copy link
Collaborator

Thanks @alexfinnarn
yeah; Backdrop Drush requires Drush proper 8.x and that requires PHP 5.4+.

The idea of backdropdrush: 'none'; is valid, but we wouldn't know that the user would be overriding to php: '5.3' ahead of time so they would still have to know to use the none option in there .lando.yml file.

I can look into a none option and maybe update the docs with the gotchya.

serundeputy added a commit that referenced this issue Oct 23, 2017
@serundeputy
Copy link
Collaborator

PR: #427

Runs drush in new appserver_cli container running php 5.5 when the appserver needs php 5.3.

@pirog pirog added the improvement Things work OK but suggestion to make them better label Oct 24, 2017
@pirog pirog added this to the 3.0.0-rc.1 milestone Oct 24, 2017
@pirog pirog closed this as completed Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Things work OK but suggestion to make them better
Projects
None yet
Development

No branches or pull requests

3 participants