Skip to content

Commit

Permalink
Merge pull request #1 from omniprojects/master
Browse files Browse the repository at this point in the history
Fix PHP version comparison
  • Loading branch information
davispeixoto committed May 5, 2015
2 parents d391403 + a794937 commit bdec77f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ public function printDebugInfo()
*/
public function createConnection($wsdl, $proxy = null, $soap_options = array())
{
// We don't need to parse out any subversion suffix - e.g. "-01" since
// PHP type conversion will ignore it
$phpversion = substr(phpversion(), 0, strpos(phpversion(), '-'));
if ($phpversion < 5.3) {
// use correct version comparison
if (version_compare(phpversion(), '5.3', '<')) {
throw new Exception ('PHP versions older than 5.3 are no longer supported. Please upgrade!');
}

Expand Down

0 comments on commit bdec77f

Please sign in to comment.