xref: /PHP-5.5/ext/soap/tests/bugs/bug69085.phpt (revision 997b7e56)
1--TEST--
2Bug #69085 (SoapClient's __call() type confusion through unserialize())
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--INI--
6soap.wsdl_cache_enabled=0
7--FILE--
8<?php
9
10$dummy = unserialize('O:10:"SoapClient":5:{s:3:"uri";s:1:"a";s:8:"location";s:22:"http://localhost/a.xml";s:17:"__default_headers";i:1337;s:15:"__last_response";s:1:"a";s:5:"trace";s:1:"x";}');
11try {
12	$dummy->whatever();
13} catch (Exception $e) {
14	echo "okey";
15}
16--EXPECT--
17okey
18