note 124801 added to soap.configuration

From: Date: Fri, 06 Mar 2020 15:08:48 +0000
Subject: note 124801 added to soap.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-214296@lists.php.net to get a copy of this message
Be aware that wsdl cache may not be compatible across different PHP versions, which may be important to know when you upgrade your PHP on the same system or use a multi-PHP version setup where you run the same scripts from different PHP versions. In other words, when a SOAP request writes a file to the cache and then you make another SOAP request from another PHP version and this cache file is used then *sometimes* you may experience unexpected errors that you will not know where they come from. I spent hours trying to figure out why I was getting "Encoding: Violation of encoding rules" errors every time I ran some of my SOAP scripts from PHP 7.3 just hours after switching from PHP 7.2. It turned out I needed to clear all cached wsdl files created by PHP 7.2. Downgrading from 7.3 to 7.2 caused the same errors and required clearing the cache, too. When transitioning to a new PHP version you may turn off the cache or set a very short wsdl_cache_ttl period - if you can't delete the files yourself. If you need your scripts to run on multiple PHP versions with wsdl cache then you'd need to set wsdl_cache_dir that is different for each PHP version. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 77.237.25.66) ---- Manual Page -- http://php.net/manual/en/soap.configuration.php Edit -- https://master.php.net/note/edit/124801 Del: integrated -- https://master.php.net/note/delete/124801/integrated Del: useless -- https://master.php.net/note/delete/124801/useless Del: bad code -- https://master.php.net/note/delete/124801/bad+code Del: spam -- https://master.php.net/note/delete/124801/spam Del: non-english -- https://master.php.net/note/delete/124801/non-english Del: in docs -- https://master.php.net/note/delete/124801/in+docs Del: other reasons-- https://master.php.net/note/delete/124801 Reject -- https://master.php.net/note/reject/124801 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214296) next »