Commit c4084bb8f31 for php.net
commit c4084bb8f31a38c6ffa31784ef5d646ee8d55545
Author: Peter Kokot <peterkokot@gmail.com>
Date: Thu Jan 15 16:58:56 2026 +0100
Use PHP 8+ square brackets for array elements
The curly braces syntax for array elements has been removed in PHP 8.0.
diff --git a/ext/standard/html_tables/html_table_gen.php b/ext/standard/html_tables/html_table_gen.php
index 02fc0c26d3d..bc76f6f7e94 100755
--- a/ext/standard/html_tables/html_table_gen.php
+++ b/ext/standard/html_tables/html_table_gen.php
@@ -180,7 +180,7 @@ enum entity_charset charset;
/* process file */
$map = array();
- $lines = explode("\n", file_get_contents($e{'file'}));
+ $lines = explode("\n", file_get_contents($e['file']));
foreach ($lines as $l) {
if (preg_match("/^0x([0-9A-Z]{2})\t0x([0-9A-Z]{2,})/i", $l, $matches))
$map[] = array($matches[1], $matches[2]);
@@ -323,7 +323,7 @@ enum entity_charset charset;
/* process file */
$map = array();
- $lines = explode("\n", file_get_contents($e{'file'}));
+ $lines = explode("\n", file_get_contents($e['file']));
foreach ($lines as $l) {
if (preg_match("/^0x([0-9A-Z]{2})\t0x([0-9A-Z]{2,})\s+#\s*(.*)$/i", $l, $matches))
$map[] = array($matches[1], $matches[2], rtrim($matches[3]));