Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+20 votes
513 views
in Q2A Core by

Hello

I noticed today that a new update (1.8.7) has been released for the Q2A.

But there is a note added by @svivian saying "Note: if your server still uses PHP 5.x, you must use the provided zip file and not the master branch from the GitHub repo, as the repo now uses PHP 7 features."

I don't quite understand what is meant by this note?

Here is the link for the new update on github: https://github.com/q2a/question2answer/releases/tag/v1.8.7

Q2A version: 1.8.6

1 Answer

+5 votes
by
selected by
 
Best answer

In short: if your site uses PHP 5, update using the zip file instead of doing a "git pull" on the repository directly. If you use PHP 7 or above, you can use either the zip file or "git pull".

Longer explanation: the code in the GitHub repo contains some code that only works on PHP 7. As Q2A 1.8 was made to support PHP 5 originally, it would be a breaking change so I changed some of it to support PHP 5.

But those changes were not committed to the repo (didn't seem worth it as I'd just change them back again later). So I created the zip file for download using PHP5-compatible code.

by
Thanks for details
...