cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[2.0.0] Drop support of PHP 5.3

Open m157y opened this issue 12 years ago • 46 comments

I was looked on last commits (2.0 branch) and saw some tweaks for support of PHP 5.3 (e.g. https://github.com/phalcon/cphalcon/commit/e8f77329620f05359447ff7df81fa4bb30dd03e7 ). But PHP 5.3 now EOL ( http://php.net/archive/2014.php#id2014-08-14-1 ), so maybe it's time to ignore it in 2.0 branch?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

m157y avatar Nov 14 '14 07:11 m157y

I agree with u, but the most of free hostings does not want migrate to 5.4+ also it's to hard install phalcon extension to free hosting. @phalcon must decide this question

akaNightmare avatar Nov 14 '14 08:11 akaNightmare

@akaNightmare, most paid hostings already have 5.4, and some of them have 5.5. But I'm really unsure that you can find free hosting with support of custom extensions (because we need it for phalcon), e.g. I don't know at least one at Russia. So I think Phalcon will not have any problems with dropped support of 5.3, but less time will be spent for code support and backward compatibility with 5.3. I really think that support of EOL products in web-dev is the main reason why web have lot of fragmentation and problems and I think that's Phalcon is one of the main frameworks must support actual versions of the software. Anyone who have old version of PHP (like 5.3) still have ability to use 1.3.x branch of Phalcon. IMO.

m157y avatar Nov 14 '14 09:11 m157y

@m157y as I said, @phalcon must decide

akaNightmare avatar Nov 14 '14 09:11 akaNightmare

@akaNightmare, I know, just an opinion against yours.

m157y avatar Nov 14 '14 09:11 m157y

@m157y checked other frameworks Yii2 - 5.4.0+ Symfony2 - 5.3.3+ Zend2 - 5.3.23+

akaNightmare avatar Nov 14 '14 09:11 akaNightmare

@akaNightmare, and about Symfony... Let's look on Fabian's voting about minimal PHP version for next major release of Symfony: http://symfony.com/blog/symfony-3-0-the-roadmap Search by keywords "Symfony 3.0 minimal PHP version", and you'll see, that most people don't asking for 5.3. And Symfony 2.0 was released July '11, but PHP 5.4 was released in March '12, so it can't have 5.4 as minimum version, but now it'll be backward-breaking change, so Symfony2 can't be as example, same actualy for Zend2, 2.0 was released at September '12, but ZF started development of 2.0 much earlier. But Yii2 first public alpha was at December '13 and already not supported PHP 5.3. So Yii2 will be real example, that new versions of Phalcon don't need support of PHP 5.3. But 5.4 removed some legacy options (I'm not sure that Phalcon uses them), but have some good new features which will can help built good components for Phalcon or Incubator, e.g. traits can be used for some features like soft-delete for models.

m157y avatar Nov 14 '14 10:11 m157y

+1 To drop PHP 5.3 support ...

ovr avatar Nov 14 '14 12:11 ovr

me too +1 to drop PHP 5.3 support

swen100 avatar Nov 14 '14 12:11 swen100

+3 to drop PHP 5.3 support

buildsufai avatar Nov 15 '14 00:11 buildsufai

I looked on PHP supported versions and I recommend to drop 5.4 too, because PHP team stopped active support of 5.4 and by Symfony roadmap, only ~20% asked 5.4 and below as minimum requirement. And I googled for hostings with support of PHP5.5, most good hostings rolled out 5.5 at summer (one year after release). Also don't forget, that phalcon is an extension for php, which doesn't available on most hosting providers, but vps or dedicated servers users can update their php version w/o any problems. E.g. I'm using 5.5 on our company's servers because phalcon 1.3.x slightly unstable on php 5.6, but I'm ready to update when phalcon 2.0 will be released. Even godaddy have php 5.5 available, which is one of most popular hostings. FYI: http://php.net/supported-versions.php

P.S. Main reason why asking to drop some PHP version is more stable framework, because you don't need support lot of unsupported versions oh php and some new features, e.g. generators from 5.5 is very good feature which already increased memory usage on some parts of one of our company's website (and yes, we using phalcon on this website).

m157y avatar Nov 18 '14 06:11 m157y

And FYI, development of 2.0.0 trying to stay compatible with 1.3.x branch, but SemVer means that new major version (like 2.x) has backward-incompatible changes. I mean not only php support, but some other issues, which was done to compatibility with 1.3. Please, don't try to be compatible all time, you must break some APIs for better framework. 1.x was (and still) good, but it's time for something better. And I promise, that I'll help with development of phalcon, if I'll agree with roadmap, but after I'll finish migration of all our websites to phalcon.

m157y avatar Nov 18 '14 06:11 m157y

+1 but I think that Phalcon 1.3 needs to be maintained for a while after 2.0 to make it run on new distros as weird stuff occurs. Also I've heard a lot of voices about how Phalcon 1.* will cause people pain when it is dropped for 2.0. One person on reddit (I can't find the link) one year ago said that he was migrating off of Phalcon because it would be EOL. That was rather foollish of him since there have been nice 1.3.* updates since then with another still in the works, but it still represents a mentionable concern. I think that Phalcon needs to demonstrate that it will not leave people hanging (like Angular I guess).

I can absolutely empathize with people not wanting to be the first to go production with Phalcon 2.0 being programmed in a new in-house language. People will want to wait that out and if it seems like they are being dumped to the next version like how 1.0-->1.1, 1.1-->1.2, etc then they will probably not be very happy about that. So I think that the better message is to tell them that 1.3 is just fine and that they can stay on that if it makes them feel more comfortable and that their eventual migration to 2.0 will be fairly minor.

Anyways, so Phalcon 2.0 isn't likely to be immediatley adopted by people who can't get their shit together about upgrading to a PHP made this decade. Those host providers would still have issues with not wanting to screw over existing customers who have deployed their tech with a different assumption. Those types will be slow as hell no matter what so why hold down Phalcon development for that?

dschissler avatar Nov 18 '14 16:11 dschissler

+1 @dschissler : we're using 1.3 in prod and it's a pain in the.. not to have update on it... We're gonna migrate to 2.0.0 when it'll be ready, but as far as i'm concerned there is a lot of bugs / behavior changes in 2.0 to migrate in a hurry...

ogarbe avatar Nov 19 '14 09:11 ogarbe

And again from another framework: https://github.com/twigphp/Twig/pull/1567#issuecomment-62852097 Fabian said that Symfony 3.x will support only 5.5+, but I understand, that next major Symfony will be released only at next year. @dschissler, I agree with you, 1.3.x must be supported for sometime. Mostly for security fixes and some bug fixes, but not new features. And if you'll remember release of Symfony2, it was completely new architecture. But lot of people uses Symfony2 right now. That's not a problem. If user like Phalcon, he will migrate to 2.x branch, that's not so hard as most people thinks. E.g. I'll need to migrate some small projects and one big project with reservation system, lot of integrations with other services and I don't see any problem here.

m157y avatar Nov 20 '14 13:11 m157y

Just for your info, Many hosting companies get their Linux distro with paid support, which may frequently be RHEL:

Red Hat Enterprise Linux Server release 6.5 repository of supported packages has PHP 5.3.3 (with few security patch);

Red Hat Enterprise Linux Server release 7.0 (released on Mid-June 2014) repository of supported packages has PHP 5.4.16.

Otherwise, I don't really mind, as long as Phalcon 1.x keeps support for 5.3.

silverkorn avatar Nov 26 '14 13:11 silverkorn

+1 I think Phalcon must drop the support for PHP 5.3 because if you will try again to recreate an existing PHP 5.3 project, why you will use this old version again? most likely you will use the much recent stable version

ghost avatar Nov 27 '14 02:11 ghost

+1 drop php 5.3 suport

Danzabar avatar Nov 27 '14 12:11 Danzabar

+1

PaulRoth avatar Nov 27 '14 13:11 PaulRoth

-1

I don't think that dropping the support of php 5.3 will do any good to the framework.

Is the size or complexity of the tweaks so big? If it isn't, then dropping the support of 5.3 will draw away more people than attact them.

maxgalbu avatar Nov 27 '14 14:11 maxgalbu

+1 drop php 5.3 support

keep phalcon 2.0 light en simple in that sense. You can always use phalcon 1.3 versions with php 5.3 if you want both.

@maxgalbu , I disagree: Dropping 5.3 support will make clear that 2.0 + php >= 5.4 is the looking forward to the future and not looking back being stuck in old school development and old type of frameworks. For Falcon adaption you first of all want the more adventurous and curious developers to join anyway. When they make amazing stuff with the framework the rest of the dev+companies will follow the creative people leading the way.

zzpstudio avatar Nov 27 '14 15:11 zzpstudio