1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00
Files
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

17 lines
492 B
PHP

--TEST--
Bug #73246 (XMLReader: encoding length not checked)
--SKIPIF--
<?php
if (!extension_loaded("xmlreader")) die("skip xmlreader extension not available");
?>
--FILE--
<?php
$reader = new XMLReader();
$reader->open(__FILE__, "UTF\0-8");
$reader->XML('<?xml version="1.0"?><root/>', "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