X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Fverify_compat.php;h=a9862c4d116d544ca3c518a8a22a86f781dedd25;hb=dd3de5570489cd2bdf44afaa7efac759d19c6e9c;hp=1d361077e34d0cd09552cd07167e36dfc7e356b5;hpb=90101b1e9ea537c0c788dcf2f5fc0c752681c7a0;p=plcapi.git diff --git a/test/verify_compat.php b/test/verify_compat.php index 1d36107..a9862c4 100644 --- a/test/verify_compat.php +++ b/test/verify_compat.php @@ -19,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 { @@ -71,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 {