phpforce / soap-client

A PHP client for the Salesforce SOAP API
MIT License
81 stars 75 forks source link

CACHE_MEMORY|CACHE_BOTH affected by PHP bug #71931 - incompatible with PHP7 #28

Closed dominics closed 8 years ago

dominics commented 8 years ago

Totally not the fault of phpforce, but using the soap option CACHE_MEMORY or CACHE_BOTH currently causes segfaults on the latest versions of PHP (e.g. 7.0.11)

The upstream bug is still open - it seems to require usage from a CLI context to be triggered, but is very repeatable.

I wonder if you'd consider leaving this configuration option up to the php.ini file's soap.wsdl_cache option rather than hard-coding it in the constructor. That would allow this library to be compatible with PHP7 immediately, rather than having to wait for the upstream bug to close (and, remember, it'll never be compatible with 7.0.0 - 7.0.11 as is...)

dominics commented 8 years ago

Closing because I see it's now just a default that can be overridden by the ClientBuilder - still good to note though, and might be worth changing that default to CACHE_DISK until the PHP maintainers get around to a fix.