Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #46760 (SoapClient doRequest fails when proxy is used) --EXTENSIONS-- soap --..

Decoded Output download

--TEST--
Bug #46760 (SoapClient doRequest fails when proxy is used)
--EXTENSIONS--
soap
--FILE--
<?php

$client = new SoapClient(null, array('proxy_host'     => "localhost",
                                            'proxy_port'     => '8080',
                                            'login'    => "user",
                                            'password' => "test",
                                            'uri'            => 'mo:http://www.w3.org/',
                                            'location'       => 'http://some.url'));
var_dump($client);

?>
--EXPECTF--
%A
  ["_proxy_port":"SoapClient":private]=>
  int(8080)
%A

Did this file decode correctly?

Original Code

--TEST--
Bug #46760 (SoapClient doRequest fails when proxy is used)
--EXTENSIONS--
soap
--FILE--
<?php

$client = new SoapClient(null, array('proxy_host'     => "localhost",
                                            'proxy_port'     => '8080',
                                            'login'    => "user",
                                            'password' => "test",
                                            'uri'            => 'mo:http://www.w3.org/',
                                            'location'       => 'http://some.url'));
var_dump($client);

?>
--EXPECTF--
%A
  ["_proxy_port":"SoapClient":private]=>
  int(8080)
%A

Function Calls

None

Variables

None

Stats

MD5 fc65c3c52af2b5705bc5b3f5e66604d0
Eval Count 0
Decode Time 79 ms