[wp-trac] [WordPress Trac] #23880: Minimum PHP version in Plugins
WordPress Trac
noreply at wordpress.org
Mon Dec 14 01:54:45 UTC 2015
#23880: Minimum PHP version in Plugins
-----------------------------+----------------------
Reporter: TJNowell | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version:
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
-----------------------------+----------------------
Comment (by maratbn):
Too bad that this ticket was closed.
So far I released 2 plugins that require PHP >= 5.4 due to the use of
short echo tags and namespaces.
Most of the problems reported by users are from trying to run the plugins
on PHP < 5.3, which do not have namespace support. I already have logic
to test for PHP < 5.4, but that only works on PHP 5.3, because anything
less will error-out on the namespace syntax, which also has to be the
first line.
Work-arounds for that would add a slight performance penalty for each HTTP
request to the site, which is just not worth it for the vast majority of
users running some more recent PHP. But if WordPress already did this the
same way it already checks for compatible WordPress versions when
installing themes/plugins there would be no additional performance
penalty.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23880#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list