xref: /php-src/ext/libxml/tests/bug79191.phpt (revision 74859783)
1--TEST--
2Bug #79191 (Error in SoapClient ctor disables DOMDocument::save())
3--EXTENSIONS--
4soap
5dom
6--FILE--
7<?php
8try {
9    new \SoapClient('does-not-exist.wsdl');
10} catch (Throwable $t) {
11}
12
13$dom = new DOMDocument;
14$dom->loadxml('<?xml version="1.0" ?><root />');
15var_dump($dom->save(__DIR__ . '/bug79191.xml'));
16?>
17--CLEAN--
18<?php
19unlink(__DIR__ . '/bug79191.xml');
20?>
21--EXPECTF--
22int(%d)
23