Skip to content

Commit 07e69f7

Browse files
authored
Update SforceBaseClient.php
1 parent 14eadd0 commit 07e69f7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

soapclient/SforceBaseClient.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public function printDebugInfo() {
105105
* http://php.net/manual/en/soapclient.soapclient.php
106106
*/
107107
public function createConnection($wsdl, $proxy=null, $soap_options=array()) {
108-
$phpversion = substr(phpversion(), 0, strpos(phpversion(), '-'));
109108

110109
$soapClientArray = array_merge(array (
111110
'user_agent' => 'salesforce-toolkit-php/'.$this->version,
@@ -117,7 +116,7 @@ public function createConnection($wsdl, $proxy=null, $soap_options=array()) {
117116

118117
// We don't need to parse out any subversion suffix - e.g. "-01" since
119118
// PHP type conversion will ignore it
120-
if (phpversion() < 5.2) {
119+
if (version_compare(PHP_VERSION, '5.2') < 0 ) {
121120
die("PHP versions older than 5.2 are no longer supported. Please upgrade!");
122121
}
123122

0 commit comments

Comments
 (0)