====== PHP RFC: SoapClient __getLocation ====== * Version: 0.3 * Date: 2016-12-06 * Author: Silvio Marijic * Status: Under Discussion * First Published at: [[rfc:soap_get_location|https://wiki.php.net/rfc/soap_get_location]] ===== Introduction ===== Currently setLocation() returns old location when called, but if new one is not provided it will unset location property.Adding a getLocation is a practical way of getting current location from client. It would be a convenient way to get location where next request will go directly from client instead of pulling that data from elsewhere, especially if location can change, for example when there is a fallback mechanism around SoapClient. ===== Proposal ===== Adding getLocation method to a SoapClient: $client = new SoapClient('http://example.com/some.wsdl'); $location = $client->__getLocation(); ===== Backward Incompatible Changes ===== No backward incompatible changes. ===== Proposed PHP Version(s) ===== - PHP 7.2 ===== To Existing Extensions ===== - Soap ===== Proposed Voting Choices ===== Proposals require 2/3 majority ===== Patches and Tests ===== [[https://github.com/php/php-src/pull/2232]] ===== Implementation ===== After the project is implemented, this section should contain - the version(s) it was merged to - a link to the git commit(s) - a link to the PHP manual entry for the feature