diff options
author | pmukhin <pavel.mukhin@agoda.com> | 2018-06-06 21:34:18 +0700 |
---|---|---|
committer | pmukhin <pavel.mukhin@agoda.com> | 2018-06-06 21:34:18 +0700 |
commit | 57e72dc198dd527e209ce189bd0523775b281b48 (patch) | |
tree | 55f48f4c0a1400fabc4284b4694027a4ce8fe805 /sapi/cli | |
parent | 48c954ca46d0c1e00d60ae882e49425c3efa0c04 (diff) | |
download | php-git-57e72dc198dd527e209ce189bd0523775b281b48.tar.gz |
Added const modifier
Diffstat (limited to 'sapi/cli')
-rw-r--r-- | sapi/cli/generate_mime_type_map.php | 2 | ||||
-rw-r--r-- | sapi/cli/mime_type_map.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/generate_mime_type_map.php b/sapi/cli/generate_mime_type_map.php index 6367b2f42f..0cea031e37 100644 --- a/sapi/cli/generate_mime_type_map.php +++ b/sapi/cli/generate_mime_type_map.php @@ -70,7 +70,7 @@ typedef struct php_cli_server_ext_mime_type_pair { const char *mime_type; } php_cli_server_ext_mime_type_pair; -static php_cli_server_ext_mime_type_pair mime_type_map[] = { +static const php_cli_server_ext_mime_type_pair mime_type_map[] = { <?php foreach ($extensions as $extension => $mime): ?> { "<?= addcslashes($extension, "\0..\37!@\@\177..\377") ?>", "<?= addcslashes($mime, "\0..\37!@\@\177..\377") ?>" }, <?php endforeach ?> diff --git a/sapi/cli/mime_type_map.h b/sapi/cli/mime_type_map.h index 249d98277e..2b880b4c7f 100644 --- a/sapi/cli/mime_type_map.h +++ b/sapi/cli/mime_type_map.h @@ -27,7 +27,7 @@ typedef struct php_cli_server_ext_mime_type_pair { const char *mime_type; } php_cli_server_ext_mime_type_pair; -static php_cli_server_ext_mime_type_pair mime_type_map[] = { +static const php_cli_server_ext_mime_type_pair mime_type_map[] = { { "ez", "application/andrew-inset" }, { "aw", "application/applixware" }, { "atom", "application/atom+xml" }, |