Post by Daniel » Thu Mar 07, 2013 1:27 am

I'm thinking of making the next version of opencart PHP 5.3 only!

I would like the communities input on this. It would be really good if we could start using php 5.3 features such as name spaces. it would make life so much easier.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by cwswebdesign » Thu Mar 07, 2013 10:58 pm

I vote YES for this. All web host "should" be running this.

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by villagedefrance » Fri Mar 08, 2013 3:58 pm

Maybe setting up a poll on the homepage, asking the community "Which PHP version are you currently using?"
The results could help with the final decision.

Mine is 5.2.17 at the moment and I don't have immediate plans for changing web hosting, so it would be a no go for me.

OpenCart custom solutions @ https://villagedefrance.net


User avatar
Active Member

Posts

Joined
Wed Oct 13, 2010 10:35 pm
Location - UK

Post by moneycarlo » Sun Mar 10, 2013 6:12 am

my host is also currently running 5.2 but that's because it was the default. I can change it to 5.3 easily enough as they have a setting in their cpanel to do so.

Active Member

Posts

Joined
Wed Sep 28, 2011 3:40 am

Post by oc-extensions » Mon Mar 11, 2013 5:07 pm

I think it's very simple:

5.2.9 - END OF LIFE
5.2.17 - DEPRECATED
5.3.21 - END OF LIFE
5.3.22 and 5.4.12 are the new best options

It's clear that Daniel needs to focus on php 5.3 so OpenCart can take advantage of these new features like namespaces and much more.

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm

Post by Daniel » Mon Mar 11, 2013 9:21 pm

I have been reviewing some stats and realize to many hosts are still using 5.2.

would have been nice using names spaces.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by qahar » Tue Mar 12, 2013 1:03 am

According to w3techs statistics, from all php 5 usage, php 5.2 have 47.3% while 5.3 have 46.8%
As you see, the users number is still the same.

But some cms like Joomla and Dupal develope version for php 5.3 start from new version.
If we used it in OpenCart, you can develope v.1.6 or v.2 with php 5.3 only.
But keep maintain the current version and release bugs fix so it come the stable version to run the business.

There is no need for you to maintain both version. Create a team for managing bugs fix for current version and you can focus on the new version. But of course, you still monitor the team to keep them on track.

User avatar
Expert Member

Posts

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

Post by Chris_AXA » Tue Mar 12, 2013 9:35 pm

Perhaps like Qahar suggests you could develop v1.6 for PHP 5.3 and keep v1.5x for PHP 5.2. This way anybody who doesn't have a host with 5.3+ can still use OC but you will still be able to take advantage of newer versions of PHP for further development of OC. Eventually 5.2 will phase out anyways so the jump will have to be made sometime.

New member

Posts

Joined
Mon Sep 24, 2012 7:18 pm

Post by utomo » Tue Apr 09, 2013 11:18 pm

+1 for qahar and chris suggestion

New member

Posts

Joined
Sat Nov 26, 2011 12:55 pm

Post by Cepreu » Wed May 22, 2013 4:47 am

moneycarlo wrote:my host is also currently running 5.2 but that's because it was the default. I can change it to 5.3 easily enough as they have a setting in their cpanel to do so.
It is exactly my situation. However, after switching to 5.3 OpenCart stopped to work (500, Server error). Does it require OC re-installing?

Newbie

Posts

Joined
Wed May 22, 2013 4:41 am

Post by beipink » Mon Jun 03, 2013 2:05 pm

Cepreu wrote:... after switching to 5.3 OpenCart stopped to work (500, Server error). Does it require OC re-installing?
I can confirm that OC 1.5.5.1 works with PHP 5.3.
Try to disable .htaccess maybe that is causing your 500, server error.

Going back to the initial post, I think the idea of getting min. req. PHP 5.3 for the next version (1.6 or 2.0) is more comprehensible if we look in perspective of a long term development.
Would it be feasible to maintain OC 1.5 with bug fixes only for, let's say 12-18 months? if the answer to this is yes, I would say, new features should go in the new version looking at the future for you and for the project.
These are the questions I would be asking myself? What happen if you keep the code compatible with old versions of PHP? would this affect development in 12/18months or later on? Would it be easier to make the switch to PHP 5.3 now or in 18months?

Active Member

Posts

Joined
Tue Mar 20, 2012 7:43 pm

Post by butte » Fri Jul 12, 2013 12:55 pm

Since I'm able to specify php.exe version and to set php.ini, on plural servers, I've found that I prefer 5.3 over prior as well as over 5.4, for very smoothly running OC 1.5.0 through 1.5.5.1, alike. Versions' defaults differ, and that can foster 500 being thrown until .ini and .ht* changes are made to match version.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by distvan » Tue Jul 16, 2013 2:57 pm

I think it is a good idea to use benefits and new features of Php 5.3 including name spaces.

Newbie

Posts

Joined
Fri May 14, 2010 7:03 pm
Location - Hungary, Gödöllő

Post by k2tec » Sat Aug 17, 2013 2:37 am

Here we are running 5.3 and even the old 1.4.xx are running on it without problems.
Next week 1 server is going to php 5.4 and see what's happening. But i think everything will be okay. I tested the old OC shop local on php 5.4. Maybe I get some problems with old WP and Joomla sites :(
But my clients were informed about the update

This is the latest list of easy apache
PHP 5 [More Info ↑]
None
5.2.9 END OF LIFE
5.2.17 END OF LIFE
5.3.26 END OF LIFE
5.3.27 DEPRECATED
5.4.17
5.5.1 EXPERIMENTAL

User avatar
Active Member

Posts

Joined
Mon Apr 12, 2010 8:06 pm

Post by butte » Sat Aug 17, 2013 6:27 am

When php 5.4 becomes available you will, hopefully, be able to select php 5.3 -- the two do not behave the same, and I happen not to care for 5.4 after an extended term of discovery and muttering. So far, all OC 1.5 versions seem happy on php5.3, and you're adding OC 1.4 without reservation.

[EDIT, ADDED, 2014 Feb 18:] Into 2014 php 5.3 satisfies 1.5.0.0 through now 1.5.6.1 OC.
Last edited by butte on Wed Feb 19, 2014 12:59 pm, edited 2 times in total.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by k2tec » Sat Aug 17, 2013 10:49 pm

When php 5.4 becomes available you will
Is already available for the most servers.(Cpanel)Even Php 5.x is supported by Cpanel


Info of http://php.net/

PHP 5.3.27 Released - PHP 5.3 Reaching End of Life
11-Jul-2013

The PHP development team announces the immediate availability of PHP 5.3.27. About 10 bugs were fixed, including a security fix in the XML parser (Bug #65236).

Please Note: This will be the last regular release of the PHP 5.3 series. All users of PHP are encouraged to upgrade to PHP 5.4 or PHP 5.5. The PHP 5.3 series will receive only security fixes for the next year.


I think for the new 2.0 relaese with PHP 5.4

User avatar
Active Member

Posts

Joined
Mon Apr 12, 2010 8:06 pm

Post by butte » Sun Aug 18, 2013 7:24 am

k2tec.-- My servers have had 5.4 available for a while, selectably among [5.1], 5.2, 5.3, 5.4, and 5.5, but as on 16th "Next week" yours "is going to php 5.4," so "when 5.4 becomes available" spoke (on 16th) to that.

Cepreu-- As for 5.3 stopping OC and throwing 500, no, it is not necessary to reinstall OC. Your php settings were not appropriate for 5.3, make those appropriate and both the 500 will go away and OC will revive. However, given the time elapsed, you will already have overcome that by now.
Last edited by butte on Sat Jan 25, 2014 1:10 am, edited 1 time in total.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by maksfeltrin » Mon Nov 25, 2013 9:16 pm

+1 PHP 5.3 namespaces
+1 PSR-{x} coding standard adoption
+1 complete registry pattern to service manager pattern, with single service instance creation

regards,
pine3ree

Newbie

Posts

Joined
Wed Nov 16, 2011 9:06 am
Who is online

Users browsing this forum: No registered users and 5 guests