Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Confirmation it works with php 7 #47

Open
shalomabitan opened this issue Dec 29, 2015 · 7 comments
Open

Confirmation it works with php 7 #47

shalomabitan opened this issue Dec 29, 2015 · 7 comments

Comments

@shalomabitan
Copy link

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

@dayofr
Copy link

dayofr commented Jan 15, 2016

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

@Jonnx
Copy link

Jonnx commented Jan 16, 2016

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.

@dayofr
Copy link

dayofr commented Jan 17, 2016

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.

@Jonnx
Copy link

Jonnx commented Jan 18, 2016

@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?

@dayofr
Copy link

dayofr commented Jan 25, 2016

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

@gabriel-sf
Copy link

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

@sreejus
Copy link

sreejus commented Aug 10, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants