mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
0f8c1ee76d
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.
15 lines
308 B
PHP
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===
|