1--TEST--
2DomDocument::schemaValidate() - invalid path to schema
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$doc = new DOMDocument;
9
10$doc->load(__DIR__."/book.xml");
11
12try {
13    $doc->schemaValidate("/path/with/\0/byte");
14} catch (ValueError $e) {
15    echo $e->getMessage() . "\n";
16}
17
18var_dump($doc->schemaValidate(str_repeat(" ", PHP_MAXPATHLEN + 1)));
19
20?>
21--EXPECTF--
22DOMDocument::schemaValidate(): Argument #1 ($filename) must not contain any null bytes
23
24Warning: DOMDocument::schemaValidate(): Invalid Schema file source in %s on line %d
25bool(false)
26