1--TEST--
2GH-11941 (soap with session persistence will silently fail when "session" built as a shared object)
3--EXTENSIONS--
4soap
5--SKIPIF--
6<?php
7// We explicitly want to test with the soap extension enabled and session extension disabled
8if (extension_loaded("session")) die("skip this test must run with the session extension disabled");
9?>
10--FILE--
11<?php
12$server = new SoapServer(null, array('uri'=>"http://testuri.org"));
13$server->setPersistence(SOAP_PERSISTENCE_SESSION);
14?>
15--EXPECTF--
16%aUncaught Error: SoapServer::setPersistence(): Persistence cannot be set when the SOAP server is used in function mode in %s:%d
17%a
18