diff options
Diffstat (limited to 'src/snuffleupagus.c')
| -rw-r--r-- | src/snuffleupagus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c index f0737b4..7bf3649 100644 --- a/src/snuffleupagus.c +++ b/src/snuffleupagus.c | |||
| @@ -21,7 +21,7 @@ ZEND_DLEXPORT int sp_zend_startup(zend_extension *extension) { | |||
| 21 | } | 21 | } |
| 22 | // LCOV_EXCL_END | 22 | // LCOV_EXCL_END |
| 23 | 23 | ||
| 24 | static inline void sp_op_array_handler(zend_op_array *op) { | 24 | static inline void sp_op_array_handler(zend_op_array *const op) { |
| 25 | // We need a filename, and strict mode not already enabled on this op | 25 | // We need a filename, and strict mode not already enabled on this op |
| 26 | if (NULL == op->filename || op->fn_flags & ZEND_ACC_STRICT_TYPES) { | 26 | if (NULL == op->filename || op->fn_flags & ZEND_ACC_STRICT_TYPES) { |
| 27 | return; | 27 | return; |
| @@ -121,7 +121,7 @@ PHP_MINIT_FUNCTION(snuffleupagus) { | |||
| 121 | return SUCCESS; | 121 | return SUCCESS; |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | static void free_disabled_functions_hashtable(HashTable *ht) { | 124 | static void free_disabled_functions_hashtable(HashTable *const ht) { |
| 125 | void *ptr = NULL; | 125 | void *ptr = NULL; |
| 126 | ZEND_HASH_FOREACH_PTR(ht, ptr) { sp_list_free(ptr); } | 126 | ZEND_HASH_FOREACH_PTR(ht, ptr) { sp_list_free(ptr); } |
| 127 | ZEND_HASH_FOREACH_END(); | 127 | ZEND_HASH_FOREACH_END(); |
| @@ -186,7 +186,7 @@ PHP_MSHUTDOWN_FUNCTION(snuffleupagus) { | |||
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | PHP_RINIT_FUNCTION(snuffleupagus) { | 188 | PHP_RINIT_FUNCTION(snuffleupagus) { |
| 189 | const sp_config_wrapper *config_wrapper = | 189 | const sp_config_wrapper *const config_wrapper = |
| 190 | SNUFFLEUPAGUS_G(config).config_wrapper; | 190 | SNUFFLEUPAGUS_G(config).config_wrapper; |
| 191 | #if defined(COMPILE_DL_SNUFFLEUPAGUS) && defined(ZTS) | 191 | #if defined(COMPILE_DL_SNUFFLEUPAGUS) && defined(ZTS) |
| 192 | ZEND_TSRMLS_CACHE_UPDATE(); | 192 | ZEND_TSRMLS_CACHE_UPDATE(); |
| @@ -254,7 +254,7 @@ static PHP_INI_MH(OnUpdateConfiguration) { | |||
| 254 | 254 | ||
| 255 | while (1) { | 255 | while (1) { |
| 256 | // We don't care about overwriting new_value->val | 256 | // We don't care about overwriting new_value->val |
| 257 | char *config_file = strsep(&str, ","); | 257 | const char *config_file = strsep(&str, ","); |
| 258 | if (config_file == NULL) break; | 258 | if (config_file == NULL) break; |
| 259 | 259 | ||
| 260 | glob_t globbuf; | 260 | glob_t globbuf; |
