xref: /PHP-5.5/ext/soap/tests/bug70388.phpt (revision e201f01a)
1--TEST--
2Bug #70388 (SOAP serialize_function_call() type confusion / RCE)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7$dummy = unserialize('O:10:"SoapClient":3:{s:3:"uri";s:1:"X";s:8:"location";s:22:"http://localhost/a.xml";s:17:"__default_headers";a:1:{i:1;s:1337:"'.str_repeat("X", 1337).'";}}');
8try {
9	var_dump($dummy->notexisting());
10} catch(Exception $e) {
11	var_dump($e->getMessage());
12	var_dump(get_class($e));
13}
14?>
15--EXPECTF--
16string(%d) "%s"
17string(9) "SoapFault"