From a4334bbef56fe9360741fda2bee100ac1e8aebed Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 9 Jul 2014 16:46:35 -0700 Subject: Use PHP_VERSION constant instead of phpversion() function call Change-Id: Ifb3d1bd92d6abaa561e7337b311b4cb10c38a2b6 --- maintenance/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'maintenance/update.php') diff --git a/maintenance/update.php b/maintenance/update.php index a51564aff3af..046d73cdced2 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -26,7 +26,7 @@ * @ingroup Maintenance */ -if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), '5.3.2' ) < 0 ) ) { +if ( !function_exists( 'version_compare' ) || ( version_compare( PHP_VERSION, '5.3.2' ) < 0 ) ) { require dirname( __FILE__ ) . '/../includes/PHPVersionError.php'; wfPHPVersionError( 'cli' ); } -- cgit v1.2.3