Post by davidbfranks » Thu Mar 01, 2018 5:31 am

Does OpenCart support PHP 7.2? Has anyone tested it?

Apparently there are significant performance increases, see this article - https://kinsta.com/blog/php-7-hhvm-benchmarks/

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by IP_CAM » Thu Mar 01, 2018 11:24 am

Well, that's all carbage talk, they said that already about PHP 7.0,
and it did not change a thing for OC. But since you want to find out,
what's keeping you from trying it out, you won't have to change
anything in the OC configuration.
Ernie

For Sale: Top URL's, including OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by davidbfranks » Thu Mar 01, 2018 5:43 pm

IP_CAM wrote:
Thu Mar 01, 2018 11:24 am
Well, that's all carbage talk, they said that already about PHP 7.0,
and it did not change a thing for OC. But since you want to find out,
what's keeping you from trying it out, you won't have to change
anything in the OC configuration.
Ernie
Look at the benchmarks (in the link I posted) they speak for themselves....

I will test it, just didn't want to waste my time in case someone else already had.

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by straightlight » Thu Mar 01, 2018 6:07 pm

The best way to know is to contact your host and ask them to upgrade to PHP 7.2. Then, test Opencart on a server environment before removing site maintenance on your live store due to server change.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by davidbfranks » Fri Mar 02, 2018 4:19 pm

I asked OpenCart about this, they said:
Normally, we prefer the Opencart system to run in PHP 5.6.
There may be some bug or error with you run in PHP 7.X.

If you have any question, please feel free to let us know.
Thanks and regards,

Alex
Opencart Team

Active Member

Posts

Joined
Mon Mar 04, 2013 10:31 pm
Location - London

Post by straightlight » Sat Mar 03, 2018 8:15 am

I don't know where this information has been taken from but one thing is for sure; the PHP Industry did abolished some functions and even tweaked some existing functions that may not be implied the same way as previous PHP versions were using and that Opencart is still is using. So far, by diagnosing the code, the issue is NOT with PHP but rather the dev team who supports it and might not be adapted or lacking with the new infrastructure of what the Industry has provided within the last year or two.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Sat Mar 03, 2018 9:17 am

Look at the benchmarks (in the link I posted) they speak for themselves....
Well, those benchmarks do NOT include OpenCart, and I have made a bunch of real-time
Tests, by use of my peaked Test OC's, and always packed at least with 2K Products,
and not getting ANY result, better than before. But I am also aware of, that getting an OC
20 products Category GTMetrix Result from 98% up to 99% is not that easy either... ::)
And what counts for me is, what a Visitor gets, and not some theoretical Benchmarks.

However, I cannot speak for latest OC Versions, since I use v.1.5.6.5, but combined
with V.2.x Bootstrap Themes, and PHP 7.0.x will be the End of the Line for this Version,
without changing some of the existing Code. Still, there was no measusable difference
to PHP 5.x, used before, performance-wise, and from a Visitor Point of View.
But I am also aware of the Fact, that some Responsive Themes drop GTMetrix Results
by 15%+ Performance Points, without adding anything else, but themselfs... 8)
As you can see on the image just below...

But for those, using MySql before, the also required change to MySqli is a giant
step upwards, but this has nothing to do with PHP-7 either, just to mention this as well.
There are lots of things, keeping OC from doing, what it could, but as long as
OC Users fill their Pages with all that crab, available in the Extension Sections,
it's just a Dream, to expect an OC to work better, just by changing to PHP 7.2.x.
Ernie
---
Another Theme, and I tried everything, but that's the best I got out of it, so, I dropped it from the list...
Image
---
Image
---
Link to large image:
download/file.php?mode=view&id=34065

Attachments

1565_php_test_chrome_browser_performance_results.jpg

Chrome Browser Performance test - 1565_php_test_chrome_browser_performance_results.jpg (79.2 KiB) Viewed 3316 times

theme_performance_test_1565.jpg

Custom OC Theme Performance Test - theme_performance_test_1565.jpg (52.43 KiB) Viewed 3343 times

php_version_performance_test_1565.jpg

Compare PHP Version Performance Test - php_version_performance_test_1565.jpg (437.75 KiB) Viewed 3346 times


For Sale: Top URL's, including OpenCart V-Pro installed, like seen here:
http://www.bigmax.ch - http://www.ipcam.li - http://www.opencart.li
For Information + URL's offered, please contact me at: jti@jacob.ch
I am NOT available for Custom Support in existing OC Installations!
My Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by qahar » Thu Mar 08, 2018 1:45 pm

I'm doing two compatibility test for OpenCart current master branch, commit e8a0a91 March 5, 2018.

# PHP CodeSniffer Compatibility

Test against PHP between version 5.4 - 7.3

Code: Select all

phpcs -p . --extensions=php --standard=PHPCompatibility --runtime-set testVersion 5.4-7.3 --report-summary=./phpcs_compat_summary.txt --report-full=./phpcs_compat_full.txt
Conclusion: no conclusion report, maybe screenshoot can help.
phpcs-compatibility.png

phpcs-compatibility.png (23.24 KiB) Viewed 2869 times

Detailed report in attachment.
Quite details report including files, code line and the description.

# PHP CompatInfo

Test command

Code: Select all

php phpcompatinfo.phar analyser:run . --output=phpcompatinfo_result.txt

Conclusion: Requires PHP 5.6.0 (min), PHP 7.0.2 (all)

Detailed report in attachment.
Contain summary for required PHP ext; namespace, class, method enalysis etc

I suggest to take look both result, because in PHP CodeSniffer compatibility report there is errors indicating issue in PHP 7.1 and 7.2
But it was only at certain library and vendor which not all user might use them.

.

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by schiggi » Thu Mar 08, 2018 8:14 pm

Using OC 2.3 in production with PHP 7.1. Works very well.

PHP 7.2 removed mcrypt extension. Since OC3, mcrypt was replaced, so I guess, it will work fine as well. The functions changed in the newest PHP versions don't affect OC. However, some extensions might be not up to date but from my experience with professional, large extension developers, that should not be a problem.

New member

Posts

Joined
Tue May 13, 2014 4:23 am
Who is online

Users browsing this forum: No registered users and 3 guests