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