From: ggiunta Date: Wed, 6 May 2009 11:42:32 +0000 (+0000) Subject: - remove testing for older versions of php X-Git-Tag: 3.0.0-beta~26 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=30ebc9ef1db1258d73352b56b649c0ae05f7e6df - remove testing for older versions of php git-svn-id: https://svn.code.sf.net/p/phpxmlrpc/code/trunk/xmlrpc@15 013ecfd8-0664-425d-a759-9c98391dc3f9 --- diff --git a/test/verify_compat.php b/test/verify_compat.php index 2b37c34..77553c2 100644 --- a/test/verify_compat.php +++ b/test/verify_compat.php @@ -29,15 +29,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, '4') < 0) + if (version_compare($ver, '5') < 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 4.2 or later'; - } - else if (version_compare($ver, '4.2') < 0) - { - $tests['php_version']['status'] = 1; - $tests['php_version']['description'] .= "This version of PHP is partially compatible with the PHP XMLRPC library.\nIn order to use the library, you will need to make sure the files from the compat directory are available on your server"; + $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) {