[wp-trac] [WordPress Trac] #23880: Minimum PHP version in Plugins

WordPress Trac noreply at wordpress.org
Thu Mar 28 10:48:44 UTC 2013


#23880: Minimum PHP version in Plugins
-----------------------------+-----------------------------
 Reporter:  TJNowell         |       Type:  feature request
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Plugins
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+-----------------------------
 If I write a plugin that uses namespaces, and test locally and find no
 issues, everything is okay for me.

 However namespaces is a PHP 5.3 feature, and a significant portion of the
 userbase is on 5.2.x.

 Given the rise of PHP 5.3 usage, and oncoming 5.4 features, I'd like to be
 able to declare that such a plugin requires PHP 5.3 minimum else it will
 break, and for WordPress to respect this if the plugin is installed on a
 5.2.x server by preventing activation of a plugin that is guaranteed to
 cause a fatal error as a result.

 e.g. for one of my own plugins:


 {{{
 <?php
 /*
 Plugin Name: Local Indicator
 Plugin URI: http://tomjn.com
 Description: Indicates the current server used via a colour coded IP in
 the top admin bar, useful for telling live and Local dev environments
 apart
 Author: Tom J Nowell, Interconnect/IT
 Version: 1.3
 Minimum PHP: 5.3
 Author URI: http://tomjn.com/
 */
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23880>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list