[wp-trac] [WordPress Trac] #29489: wp_check_php_mysql_versions() is broken in PHP 4
WordPress Trac
noreply at wordpress.org
Wed Dec 24 07:04:46 UTC 2014
#29489: wp_check_php_mysql_versions() is broken in PHP 4
-----------------------------+------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by nacin):
I'm wondering how much I care about this.
if wp-admin/install.php otherwise parses, could we do a stupid simple
check before any requires occur, and bail? I mean something ridiculous
like:
{{{
if ( version_compare( phpversion(), 5, '<' ) ) {
header( 'Content-type: text/html; charset=utf8' );
die( 'Your server is running PHP version 4, which is not compatible
with WordPress. <a
href="https://wordpress.org/about/requirements/">https://wordpress.org/about/requirements/</a>'
);
}
}}}
I don't care about any other path, except the readme entry point, which is
wp-admin/install.php.
If wp-admin/install.php isn't otherwise parseable, then I really just
don't care. If it is, then maybe we can set up some kind of CI on this to
ensure it always remains passable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29489#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list