Req #60676 [Asn]: Add ability to specify default proxy server for soap extension
| From: | samm at os2 dot kiev dot ua | Date: | Mon, 11 Mar 2013 10:49:51 +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-177721@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:
Thank you for reply, I don`t think that adding such variables will cause any problems. Internet
access via proxy is not a common case and most of SOAP applications are not supporting it on a code
level. This patch allows to use such apps with proxy transparently, without any code changes. But if
you are not going to implement this I think its a good time to close the ticket.
Previous Comments:
------------------------------------------------------------------------
[2013-03-11 10:12:07] dmitry@php.net
This feature request wasn't implemented.
Few years ago it was decided not add new php.ini directives without a serious need. I agree that
such options might be helpful, but it's much better to support them at application level.
------------------------------------------------------------------------
[2013-03-10 06:34:13] samm at os2 dot kiev dot ua
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.
------------------------------------------------------------------------
[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