1--TEST-- 2Not returning a node set for C14N 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7$dom = new DOMDocument; 8$dom->loadXML('<root>test</root>'); 9try { 10 $dom->documentElement->C14N(true, false, ['query' => 'string(./root/text())']); 11} catch (Error $e) { 12 echo $e->getMessage(), "\n"; 13} 14?> 15--EXPECT-- 16XPath query did not return a nodeset 17