--TEST-- Bug #73246 (XMLReader: encoding length not checked) --SKIPIF-- --FILE-- open(__FILE__, "UTF\0-8"); $reader->XML('', "UTF\0-8"); ?> --EXPECTF-- Warning: XMLReader::open(): Encoding must not contain NUL bytes in %s on line %d Warning: XMLReader::XML(): Encoding must not contain NUL bytes in %s on line %d