Req #60676 [Asn]: Add ability to specify default proxy server for soap extension
| From: | samm at os2 dot kiev dot ua | Date: | Sun, 10 Mar 2013 06:34:13 +0000 |
| Subject: | Req #60676 [Asn]: Add ability to specify default proxy server for soap extension | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177711@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60676&edit=1
ID: 60676
User updated by: samm at os2 dot kiev dot ua
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:
I don`t see any reference that this bug is fixed, and i think it is not. I can provide documentation
for new ini settings if you need it. Bug you mentioned is the same but contains no real solution.
Previous Comments:
------------------------------------------------------------------------
[2013-03-10 03:24:19] Danack at basereality dot com
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.
------------------------------------------------------------------------
[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