Home › Forums › Community Summit Discussion Topics › After PHP 5.2
Tagged: core, development
- This topic has 9 replies, 10 voices, and was last updated 9 years, 6 months ago by Benny.
-
AuthorPosts
-
October 21, 2014 at 6:59 am #654053Andrew NacinParticipant
We may very well be able to drop PHP 5.2 by the end of 2015. When we moved to PHP 5.2 originally from PHP 4, we dropped some legacy code and otherwise didn’t do anything resembling a complete rewrite for PHP 5.2 things. In hindsight this was definitely the best approach. But the WordPress codebase could undergo some concrete changes by leveraging 5.3+ specific features such as namespaces and closures. We need to start thinking about what this could and should look like.
October 21, 2014 at 10:25 am #654091Aaron D. CampbellParticipantI think this could be a great way to try to both identify potential benefits as well as set proper expectations. I’d love to be a part of this one.
October 21, 2014 at 12:04 pm #654124Patrick RaulandParticipant+1
October 21, 2014 at 12:19 pm #654140Jenny WongParticipant+1 for it being discussed.
October 21, 2014 at 12:20 pm #654141Ryan McCueParticipant+1
October 21, 2014 at 12:42 pm #654150Morgan EstesParticipant+1 for “what next?” and also for deciding which parts of 5.x to utilize in core.
October 21, 2014 at 1:32 pm #654166Tom J NowellParticipant+1000
October 23, 2014 at 6:08 am #654833bobbingwideParticipantGiven that PHP 5.3 has reached end of life ( http://php.net/archive/2014.php#id2014-08-14-1 ) I would suggest putting some checks into the Dashboard advising users that they should be getting their hosting upgraded to PHP 5.4 or higher.
It should be clear to the user when the support for PHP 5.2/5.3 will be dropped.
It should also be clear what it means; how this might affect them.Perhaps also something about the highest level of PHP on which WordPress is supported / has been tested.
Did you really mean 2015?
October 23, 2014 at 9:38 am #654876Weston RuterParticipantI half-jokingly/half-seriously envision moving all existing PHP global-namespace functions for WordPress into a
deprecated.php
, and then to come up with a normalized/consistent library of functions that take array arguments (finally kill$deprecated = ''
arguments, and eliminating 6+ positional arguments to functions). The new WP PHP API could then be namespaced under\WordPress
.This doesn’t address global variables, but that’s a different beast since they cannot be namespaced using PHP namespaces as such.
October 27, 2014 at 7:28 am #660516BennyParticipant+1 for suggestion of bobbingwide
Currently the people who never upgrade set the benchmark for the minimal required PHP version. I find that somewhat odd 😉
Wouldn’t it make more sense to set the minimal required PHP level based on the PHP version used by people who do care about keeping their sites secure and thus up to date?
For that it would be interesting to see at https://wordpress.org/about/stats/ which WordPress version is used by the people still on PHP version 5.2. I guess most of them are not on WP 4.0?
Also, I think if a PHP version is EOL, i.e. when it no longer will get security fixes, that WP should follow. Those EOL (end of support life) dates are known years ahead so e.g. when WP 4.1 comes out it could warn PHP 5.2 users that starting with WP 4.x that PHP 5.2 will no longer be supported. Maybe with a link to WordPress.org page explaining the why and the how. E.g. a lot of hosting control panels have a simple selector where you can switch the PHP version your self!.
-
AuthorPosts
- The forum ‘Community Summit Discussion Topics’ is closed to new topics and replies.