Force.com-Toolkit-for-PHP icon indicating copy to clipboard operation
Force.com-Toolkit-for-PHP copied to clipboard

Confirmation it works with php 7

Open shalomabitan opened this issue 9 years ago • 7 comments

Hi,

Can you please confirm that it works with php 7? I'm getting errors only when I run on a server with php7 and I'm wondering if it's me or the framework.

Thanks

shalomabitan avatar Dec 29 '15 00:12 shalomabitan

Hi,

I have the same problem here. I try to fix it but was unable to do so :(

I find your issue via: https://developer.salesforce.com/forums/?id=906F0000000MJOoIAO

ping @dcarroll @jonmountjoy @jr0cket @wadewegner can you help us?

Regards

dayofr avatar Jan 15 '16 13:01 dayofr

We have tried a few builds of our application (that uses the sdk) on PHP7. The only error we are getting is because of a deprecated constructor function name in the SforceEnterpriseClient class

class SforceEnterpriseClient extends SforceBaseClient {
  const ENTERPRISE_NAMESPACE = 'urn:enterprise.soap.sforce.com';

  function SforceEnterpriseClient() {
    $this->namespace = self::ENTERPRISE_NAMESPACE;
  }

should be

class SforceEnterpriseClient extends SforceBaseClient {
  const ENTERPRISE_NAMESPACE = 'urn:enterprise.soap.sforce.com';

  public function __construct() {
    $this->namespace = self::ENTERPRISE_NAMESPACE;
  }

working on a fix in a fork.

Jonnx avatar Jan 16 '16 21:01 Jonnx

Hi @Jonnx I've fixed this one, but when doing an insert I've got the above error. The query are working fine.

Will try you fork when available.

dayofr avatar Jan 17 '16 20:01 dayofr

@dayofr getting the same error. haven't been able to hunt down what causes that. I am also trying to figure out how to run the tests included with the sdk to ensure that everything works. any ideas?

Jonnx avatar Jan 18 '16 16:01 Jonnx

@shalomabitan @Jonnx look at https://github.com/developerforce/Force.com-Toolkit-for-PHP/pull/48/files it's now working for me.

dayofr avatar Jan 25 '16 15:01 dayofr

Has anyone experienced an issue when saving null parameters using the $salesforceAtar->fieldsToNull and getting the response "SOAP-ERROR: Encoding: Cannot find encoding" ?

gabriel-sf avatar May 19 '16 10:05 gabriel-sf

https://github.com/developerforce/Force.com-Toolkit-for-PHP/pull/48/files Working for me

sreejus avatar Aug 10 '16 22:08 sreejus