Req #60676 [NEW]: Add ability to specify default proxy server for soap extension

From: Date: Sat, 07 Jan 2012 02:19:17 +0000
Subject: Req #60676 [NEW]: Add ability to specify default proxy server for soap extension
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166273@lists.php.net to get a copy of this message
From:             
Operating system: 
PHP version:      5.3.8
Package:          SOAP related
Bug Type:         Feature/Change Request
Bug description:Add ability to specify default proxy server for soap extension

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 bug report at https://bugs.php.net/bug.php?id=60676&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=60676&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=60676&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=60676&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=60676&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60676&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=60676&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=60676&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=60676&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=60676&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=60676&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=60676&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=60676&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=60676&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=60676&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=60676&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60676&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=60676&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=60676&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=60676&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=60676&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=60676&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#166273) next »