Bump requirements to 5.1.0; grammar fixes in comments
[plcapi.git] / test / verify_compat.php
index ad9e6f9..a9862c4 100644 (file)
@@ -2,9 +2,8 @@
 /**
  * Verify compatibility level of current php install with php-xmlrpc lib
  *
- * @version $Id$
  * @author Gaetano Giunta
- * @copyright (C) 2006-2009 G. Giunta
+ * @copyright (C) 2006-2014 G. Giunta
  * @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
  *
  * @todo add a test for php output buffering?
@@ -20,15 +19,10 @@ function phpxmlrpc_verify_compat($mode='client')
     $ver = phpversion();
     $tests['php_version'] = array();
     $tests['php_version']['description'] = 'PHP version found: '.$ver.".\n\n";
-    if (version_compare($ver, '5') < 0)
+    if (version_compare($ver, '5.1.0') < 0)
     {
       $tests['php_version']['status'] = 0;
-      $tests['php_version']['description'] .= 'This version of PHP is not compatible with this release of the PHP XMLRPC library. Please upgrade to php 5 or later';
-    }
-    else if (version_compare($ver, '5.0.3') < 0)
-    {
-      $tests['php_version']['status'] = 1;
-      $tests['php_version']['description'] .= "This version of PHP is almost completely compatible with the PHP XMLRPC library.\nThe only unavailable function is automatic mapping of php functions to xmlrpc methods";
+      $tests['php_version']['description'] .= 'This version of PHP is not compatible with this release of the PHP XMLRPC library. Please upgrade to php 5.1.0 or later';
     }
     else
     {
@@ -72,10 +66,10 @@ function phpxmlrpc_verify_compat($mode='client')
     $ver = phpversion();
     $tests['php_version'] = array();
     $tests['php_version']['description'] = 'PHP version found: '.$ver.".\n\n";
-    if (version_compare($ver, '5') < 0)
+    if (version_compare($ver, '5.1.0') < 0)
     {
       $tests['php_version']['status'] = 0;
-      $tests['php_version']['description'] .= 'This version of PHP is not compatible with the PHP XMLRPC library. Please upgrade to 5.0 or later';
+      $tests['php_version']['description'] .= 'This version of PHP is not compatible with the PHP XMLRPC library. Please upgrade to 5.1.0 or later';
     }
     else
     {
@@ -148,7 +142,7 @@ tbody td { border-top: 1px solid gray; }
 </head>
 <body>
 <h1>PHPXMLRPC compatibility assessment with the current PHP install</h1>
-<h4>For phpxmlrpc version 2.0 or later</h4>
+<h4>For phpxmlrpc version 3.0 or later</h4>
 <h3>Server usage</h3>
 <table cellspacing="0">
 <thead>