Edit report at https://bugs.php.net/bug.php?id=60676&edit=1
ID: 60676
Comment by: Danack at basereality dot com
Reported by: samm at os2 dot kiev dot ua
Summary: Add ability to specify default proxy server for soap
extension
Status: Assigned
Type: Feature/Change Request
Package: SOAP related
PHP Version: 5.3.8
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Possibly duplicate of https://bugs.php.net/bug.php?id=29280 which would set
proxy
settings for all connections.
However that bug says that it's fixed, however there appears to be no
documentation of how to use the 'new' ini file settings.
Previous Comments:
------------------------------------------------------------------------
[2012-01-07 02:19:17] samm at os2 dot kiev dot ua
Description:
------------
I found that there is no way to change default SoapClient settings. I have a
project installed in proxy environment and i want to avoid major code changes.
Proposed changes will add 3 ini variables:
1) soap.proxy_host
2) soap.proxy_port
3) soap.proxy_login
4) soap.proxy_password
If this settings are specified in ini (or using ini_set()) then SoapClient will
use them by default. It is still possible to override them in the object
parameters array.
Test script:
---------------
Any SoapClient call without parameters in the proxy-only network.
Expected result:
----------------
After this patch and setting ini variables proxy will be used.
This is example from my test machine:
ini_set("soap.wsdl_cache_enabled", "0");
ini_set("soap.proxy_port", 3128);
ini_set("soap.proxy_host", "127.0.0.1");
//ini_set("soap.proxy_login", "test");
//ini_set("soap.proxy_password", "test");
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60676&edit=1