question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default to current version of PHP

See original GitHub issue

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version? {"name":"Bluemix","build":"270013","support":"http://ibm.biz/bluemix-supportinfo","version":0,"description":"IBM Bluemix","authorization_endpoint":"https://login.eu-gb.bluemix.net/UAALoginServerWAR","token_endpoint":"https://uaa.eu-gb.bluemix.net","min_cli_version":null,"min_recommended_cli_version":null,"api_version":"2.92.0","app_ssh_endpoint":"ssh.eu-gb.bluemix.net:2222","app_ssh_host_key_fingerprint":"c7:1f:89:2a:62:3b:78:a9:08:c9:33:81:fb:39:26:da","app_ssh_oauth_client":"ssh-proxy","doppler_logging_endpoint":"wss://doppler.eu-gb.bluemix.net:443"}

cf version 6.32.0+0191c33d9.2017-09-26

What version of the buildpack you are using? 4.3.39

If you were attempting to accomplish a task, what was it you were attempting to do? Deploy a PHP app (actually a single index.php file)

What did you expect to happen? The PHP app to be deployed with some current version of PHP (7.0 or 7.1)

What was the actual behavior? App was deployed with PHP 5.6.31. This is not a supported version of PHP (see http://php.net/supported-versions.php)

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

This buildpack offers a very good selection of PHP versions and keeps up with everything brilliantly, thankyou! I would however like to propose that the default PHP version always be a recommended stable one - so today that should be PHP 7.1.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ikari7789commented, Apr 24, 2018

@dmikusa-pivotal if support for any version of PHP is to be dropped, I’d suggest aligning it with the official PHP EOLs. PHP 7.0 still receives security updates through almost the end of the year along with PHP 5.6. Around November, we can expect PHP 7.3 will be released, making 7.1 the oldest “supported” version. Keeping the default version at the middle of the 3 versions seems like a smart choice to me and should only need to happen about once a year.

2reactions
dmikusacommented, Nov 30, 2017

@sclevine - Thoughts:

  • I’m not sure we should switch to the 7.2 as default. That might be too aggressive. I’d be more comfortable with 7.1 as default. 7.2 as latest & 5.6 as legacy. I think we could even drop 7.0.

  • Longer notice would be better: 60 or 90 days.

  • If there’s some way the buildpack could alert on this change that would be even better. I know we do this if the buildpack version changes. Maybe we could do something similar. Keep track of the previously installed PHP version in the buildpack cache. If that changes, the buildpack could then alert. I think this would help for this particular case, but would also be generally useful as it would let people see when maintenance releases of PHP are changing too.

Dan

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switch php versions on commandline ubuntu 16.04
Default PHP 7.1 is set on your system and you need to switch to PHP 5.6. Apache: $ sudo a2dismod php7.1 $ sudo...
Read more >
Downloads - PHP
Current Stable PHP 8.2.0 (Changelog) · php-8.2.0.tar.gz ; Old Stable PHP 8.1.13 (Changelog) · php-8.1.13.tar.gz ; Old Stable PHP 8.0.26 (Changelog) · php-8.0.26.tar....
Read more >
Setting the CLI PHP Version - GridPane
Out of the box, our default CLI PHP version is set to PHP 7.4. In the near future, this will be updated to...
Read more >
How to Change PHP Version in cPanel - InMotion Hosting
Login to cPanel. Click the MultiPHP Manager link in the Software section of cPanel.
Read more >
Switch Between Multiple PHP Versions In Ubuntu - OSTechNix
1.1.5. Enter the selection number to set it as default version or simply press ENTER to keep the current choice. Change PHP default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found