Skip to content

Commit 17aea74

Browse files
committed
sapi/cli: make template_map const
1 parent d4cfffa commit 17aea74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/php_cli_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ typedef struct php_cli_server_http_response_status_code_pair {
208208
const char *str;
209209
} php_cli_server_http_response_status_code_pair;
210210

211-
static php_cli_server_http_response_status_code_pair template_map[] = {
211+
static const php_cli_server_http_response_status_code_pair template_map[] = {
212212
{ 400, "<h1>%s</h1><p>Your browser sent a request that this server could not understand.</p>" },
213213
{ 404, "<h1>%s</h1><p>The requested resource <code class=\"url\">%s</code> was not found on this server.</p>" },
214214
{ 405, "<h1>%s</h1><p>Requested method not allowed.</p>" },

0 commit comments

Comments
 (0)