Skip to content

Commit

Permalink
Merge branch 'SforceBaseClient-fix-version-checking' of https://githu…
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbauman committed Dec 10, 2018
2 parents 41cf02a + 07e69f7 commit 221a7a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions soapclient/SforceBaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function printDebugInfo() {
* http://php.net/manual/en/soapclient.soapclient.php
*/
public function createConnection($wsdl, $proxy=null, $soap_options=array()) {
$phpversion = substr(phpversion(), 0, strpos(phpversion(), '-'));

$soapClientArray = array_merge(array (
'user_agent' => 'salesforce-toolkit-php/'.$this->version,
Expand All @@ -117,7 +116,7 @@ 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
if (phpversion() < 5.2) {
if (version_compare(PHP_VERSION, '5.2') < 0 ) {
die("PHP versions older than 5.2 are no longer supported. Please upgrade!");
}

Expand Down

0 comments on commit 221a7a8

Please sign in to comment.