1--TEST-- 2Bug #79971 (special character is breaking the path in xml function) 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7$imp = new DOMImplementation; 8if (PHP_OS_FAMILY === 'Windows') { 9 $path = '/' . str_replace('\\', '/', __DIR__); 10} else { 11 $path = __DIR__; 12} 13$uri = "file://$path/bug79971_2.xml"; 14var_dump($imp->createDocumentType("$uri%00foo")); 15?> 16--EXPECTF-- 17Warning: DOMImplementation::createDocumentType(): URI must not contain percent-encoded NUL bytes in %s on line %d 18bool(false) 19