php-src/ext/standard/tests/strings/bug73817.phpt
Christoph M. Becker 0f8c1ee76d Fix #73817: Incorrect entries in get_html_translation_table
Due to incorrect string termination and length handling, several HTML
entities missed the trailing semicolon.

We also fix the obviously wrong expectations in two already existing
tests.
2018-07-15 23:06:38 +02:00

15 lines
308 B
PHP

--TEST--
Bug #73817 (Incorrect entries in get_html_translation_table)
--FILE--
<?php
$entities = get_html_translation_table( HTML_ENTITIES, ENT_QUOTES | ENT_HTML5);
foreach ($entities as $entity) {
if (substr($entity, -1) !== ';') {
var_dump($entity);
}
}
?>
===DONE===
--EXPECT--
===DONE===