xref: /PHP-8.2/ext/soap/tests/bugs/gh16237.phpt (revision 809a58bc)
1--TEST--
2GH-16237 (Segmentation fault when cloning SoapServer)
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7
8$server = new SoapServer(null, ['uri'=>"http://testuri.org"]);
9try {
10    clone $server;
11} catch (Error $e) {
12    echo $e->getMessage(), "\n";
13}
14
15?>
16--EXPECT--
17Trying to clone an uncloneable object of class SoapServer
18