Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: gibilisco69 on May 26, 2016, 10:45:54 AM

Title: php 7
Post by: gibilisco69 on May 26, 2016, 10:45:54 AM
Can I install smf on php7? Does it run on php 7?
Title: Re: php 7
Post by: Arantor on May 26, 2016, 10:51:39 AM
Not without help, the MySQL connector SMF 2.0 uses doesn't exist in PHP 7.
Title: Re: php 7
Post by: Deprecated on May 26, 2016, 08:40:55 PM
Most shared hosting providers offer site configuration allowing their customer to pick which PHP they will use.

Also depending on ... stuff ... you can control which PHP you use with your .htaccess file (assuming you use Apache) although my shared hosting provider now charges extra for obsolete PHP versions.

I upgraded all my sites by selecting PHP 6.something and escaped the charge.

In my experience it is not a good idea to be among the cadre. They are the ones who get shot down first. OTOH be in the rear and the stragglers pick you off.
Title: Re: php 7
Post by: Kindred on May 26, 2016, 09:35:43 PM
Cadre is not the correct word to use in that context, deprecated
Title: Re: php 7
Post by: Deprecated on May 26, 2016, 09:49:43 PM
People who advocate PHP 7 are obviously Communists...

https://www.google.com/search?q=define+cadre
Title: Re: php 7
Post by: Kindred on May 26, 2016, 10:44:57 PM
Yes, but the way you used the word, that is not an appropriate definition...

The word that the rest of your sentence suggests is actually vanguard
Title: Re: php 7
Post by: Deprecated on May 26, 2016, 11:29:50 PM
Yes, okay kindred. Anything you say. I always enjoy arguing over how many angels can sit on the head of a pin.

For the record I got straight A's in every English class in high school. I'm a published author and my latest enthusiasm is to write a novel. (In which case I won't be bothering SMF's site much.)

I think the word for you today is "incorrigible." It means "not able to be corrected, improved, or reformed." I'm afraid that for the purposes of SMF that is a very accurate description of me. I write mod packages, I give bad advice (sometimes good) but always with a good heart, trying to help people, understanding that I am imperfect and my understanding of SMF's code is imperfect (even though I'm a seasoned mod package author) but I try to help people out of (you pick) 1. the goodness of my heart, or 2. boredom.

In any case you will be happy to hear I'm closing up shop for the night in a few minutes.

You should look up the definition of "deprecated" in the context of computer code. It would be educational. And accurate...
Title: Re: php 7
Post by: Arantor on May 27, 2016, 01:40:55 AM
http://www.merriam-webster.com/dictionary/cadre - no definition fits the use.

Let me know where you got PHP 6 from. I've literally never seen it in production. And you can't get it from PHP.net... I'm kinda curious how much they broke.


But dragging this back on topic, your host should let you pick PHP 5.5 or 5.6 which SMF 2.0 works fine with. 2.1 should be compatible with PHP 7 when 2.1 is ready, if not it won't take much to make it so.
Title: Re: php 7
Post by: Kindred on May 27, 2016, 06:52:37 AM
do note, deprecated... as one of my many jobs, I am actually an English teacher...

(oh yeah, and given the dreck that I have read from "published" authors - writing a book is not any indication that you understand the language)

(and I have known the meaning of the word deprecated for decades)
Title: Re: php 7
Post by: Deprecated on May 27, 2016, 09:39:45 PM
I can beat you on that Kindred, I've been deprecated for almost as long as I've been Deprecated! :D -- I started hanging around SMF when my hardware/software/firmware consulting business dried up due to the economy tanking. I was literally deprecated. That's how I picked my name here.

SRSLY my shared host is 1&1 and they are prodding their customers to move up to later PHP releases I presume so they won't have to support earlier versions. They now tack on a monthly fee if you won't upgrade.

I forgot what one I'm on now, maybe 5.6? But for all practical purposes the later PHP had no effect on SMF or on my custom content delivery system.

I think some web hosting services just want to drop support for obsolete PHP versions.
Title: Re: php 7
Post by: JerzyLS on August 21, 2016, 03:00:52 PM
I'm using mydevil.net hosting and if SMF will not support PHP 7 in nearby future, I will go to migrate to other forum script with supporting the newest PHP version.

The hosting is going to turn off the PHP 5.x and I think the deadline is december of this year.
Title: Re: php 7
Post by: Arantor on August 21, 2016, 03:02:19 PM
PHP 5.6 is supported by PHP's developers for security patches until 2018.
Title: Re: php 7
Post by: Kindred on August 21, 2016, 10:22:59 PM
I believe there is a mod which adds support for php7... But I could be wrong.

However, the 2.1 beta does support php7 and will be moving forward shortly.
Title: Re: php 7
Post by: Illori on August 22, 2016, 05:07:26 AM
Quote from: Kindred on August 21, 2016, 10:22:59 PM
I believe there is a mod which adds support for php7... But I could be wrong.

no there is not, but there is a mod to add support for mysqli.