mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Make globals const (part 2) (#10610)
* Zend/zend_enum: make `forbidden_methods` static+const * main/php_syslog: make `xdigits` static * sapi/fpm: make several globals `const` * sapi/phpdbg: make `OPTIONS` static * sapi/phpdbg/help: make help texts const * sapi/cli: make `template_map` const * ext/ffi: make `zend_ffi_types` static * ext/bcmath: make `ref_str` const * ext/phar: make several globals static+const
This commit is contained in:
parent
c0d89e54c8
commit
d46dea169c
12 changed files with 28 additions and 28 deletions
|
@ -208,7 +208,7 @@ typedef struct php_cli_server_http_response_status_code_pair {
|
|||
const char *str;
|
||||
} php_cli_server_http_response_status_code_pair;
|
||||
|
||||
static php_cli_server_http_response_status_code_pair template_map[] = {
|
||||
static const php_cli_server_http_response_status_code_pair template_map[] = {
|
||||
{ 400, "<h1>%s</h1><p>Your browser sent a request that this server could not understand.</p>" },
|
||||
{ 404, "<h1>%s</h1><p>The requested resource <code class=\"url\">%s</code> was not found on this server.</p>" },
|
||||
{ 405, "<h1>%s</h1><p>Requested method not allowed.</p>" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue