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

WordPress Trac noreply at wordpress.org
Sat Mar 30 19:41:57 UTC 2013


#23880: Minimum PHP version in Plugins
-----------------------------+------------------------------
 Reporter:  TJNowell         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by F J Kaiser):

 Replying to [comment:27 bpetty]:
 > This doesn't have to be in core to be efficient and optimized, you can
 cache this in your plugin too. In fact, there's really nothing that needs
 to be cached, just check the PHP version like you would anywhere else you
 needed a fallback because a new PHP function wasn't available to you.

 Well, then please elaborate how you'd efficiently do that check.
 Especially compared to the efficiency reading the header comment.

 Or even better: Tell me (or show with code) how you'd do the check for the
 following plugin.

 {{{
 /**
  * Plugin: Foo
  * Description: Bar
  */
 namespace foo;

 // Some functionality
 }}}

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


More information about the wp-trac mailing list