php 5 to 7

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

php 5 to 7

Post by Vegan »

I noticed WP does not like PHP 7 as is, so obviously there will have to be some changes made, no rush as PHP 5.6 is still in service

Not sure if PHP 7 is done or whether there is still work to be done to fix the backwards compatibility issues
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: php 5 to 7

Post by Celauran »

PHP 7 was released last December. It's a major version, so there are going to be places where they break backwards compatibility. WP, however, should work fine on 7.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: php 5 to 7

Post by Vegan »

I tried it a month ago and it would not run, so i had to go back to 5.6 for my gaming site

not sure what the problem is, way too much code to sift through

WP is still using XHTML when 5 is been out now for how long?
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: php 5 to 7

Post by requinix »

O. M. G.
https://codex.wordpress.org/HTML_to_XHTML

Contains tidbits like
WordPress, as a system, is based on documents written in the XHTML scripting language.
WordPress prints XHTML from all its internal functions, all themes therefore are now in XHTML and so too are most plugins. So, if you want to use WordPress, you should buckle down and learn some XHTML as that's where it is right now.
Because of seemingly intractable problems with the development of XHTML..., a competing standard

Code: Select all

 supported by Mozilla (Firefox), Apple (Safari), Opera, Microsoft (Internet Explorer) and some other key Internet players has become the new favourite to succeed the old HTML 4.01 standard.[/quote]
[quote]Resources
* [url=http://www.webdevout.net/articles/beware-of-xhtml]Beware of XHTML[/url][/quote]
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php 5 to 7

Post by Christopher »

You say OMG, but don't something like 25% of all websites run on Wordpress. They need to be more practical than right.
(#10850)
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: php 5 to 7

Post by Vegan »

Christopher wrote:You say OMG, but don't something like 25% of all websites run on Wordpress. They need to be more practical than right.
I have experience with XHTML and I agree that a lot of web sites use WP. Lots of other sites are messy enough that search engines have a real tough time parsing them. WP is easier as it is forms based and a parser can be developed easily.

I am not sure what chunk of the market that WP has today, but I do know that there are a lot of users, over 1 million the last time I looked.

The improvements with PHP7 are useful for servers but less so for web developers who have to fix their sites, again.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: php 5 to 7

Post by Celauran »

Vegan wrote:The improvements with PHP7 are useful for servers but less so for web developers who have to fix their sites, again.
Literally no idea what you're on about here. Care you elaborate?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php 5 to 7

Post by Christopher »

Agreed. PHP7 is simple a better language.
(#10850)
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: php 5 to 7

Post by Vegan »

I recall reading some page on the goals of PHP 7 which was compared against 5.6 for CPU load, the improvements are enough to allow a server to run twice as many WordPress sites which will reduce operating costs for millions of sites. With millions of PHP powered sites, any savings can be spectacular
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: php 5 to 7

Post by Celauran »

Yes, absolutely it's faster. No question about that. What I was questioning was
but less so for web developers who have to fix their sites, again.
This has not been my experience at all. Everything works on 7.0 with zero modifications.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: php 5 to 7

Post by Vegan »

The last update to WP fixed a lot of the festering bugs I came across
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
Post Reply