Closed Remo closed 9 years ago
Installation works, but rendering a page doesn't work, it fails with Using $this when not in object context
just like hhvm..
this PR fixes the problem for PHP7 https://github.com/concrete5/concrete5-legacy/pull/1564/
:-1: Make sure that if you do this you are reviewing your code carefully, this will hide any warnings that PHP would raise and will make it really hard to debug any issues.
I guess when PHP 8 comes out, we'll just disable all errors completely. :disappointed:
@KorvinSzanto as mentioned in the first line of this PR, I'm not going to merge this as it is. I've merely created this to see if 5.6 could work on PHP7. I've posted a release of 5.6 for PHP7 in the forums for those who want to play with it, that's all. If we're going to work with it on PHP7 it will require more effort.
I agree with the sentiment of wanting to run smoothly on PHP7, I just want to make it clear that this method of "support" is dangerous and not recommended for production websites. If you want to use PHP 7, use a CMS that has real support for it.
True, but you know how it will be. Users will want to use it, no matter if it's recommended. My PR is just a start and if I ever have to run it I'll analyse those warnings. I don't intend to create a truly public release for this, only those reading the forum or github will find it.. Use it at your own risk and don't blame me if something breaks ;-)
At least now if anyone happens upon this, they can see that it isn't recommended.
I'm not merging this anytime soon, just to show others what's needed to get concrete5 running on PHP7 beta1