Force.com-Toolkit-for-PHP
Force.com-Toolkit-for-PHP copied to clipboard
Confirmation it works with php 7
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
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
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.
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 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?
@shalomabitan @Jonnx look at https://github.com/developerforce/Force.com-Toolkit-for-PHP/pull/48/files it's now working for me.
Has anyone experienced an issue when saving null parameters using the $salesforceAtar->fieldsToNull and getting the response "SOAP-ERROR: Encoding: Cannot find encoding" ?
https://github.com/developerforce/Force.com-Toolkit-for-PHP/pull/48/files Working for me