mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make lots of string pointers const
(#10646)
This allows using string literals without implicitly casting away the `const`.
This commit is contained in:
parent
373809c51b
commit
263b22f374
22 changed files with 39 additions and 40 deletions
|
@ -462,10 +462,10 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, bool persistent)
|
|||
dba_mode_t modenr;
|
||||
dba_info *info, *other;
|
||||
const dba_handler *hptr;
|
||||
char *error = NULL;
|
||||
const char *error = NULL;
|
||||
int lock_mode, lock_flag = 0;
|
||||
char *file_mode;
|
||||
char *lock_file_mode = NULL;
|
||||
const char *file_mode;
|
||||
const char *lock_file_mode = NULL;
|
||||
int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0;
|
||||
zend_string *opened_path = NULL;
|
||||
char *lock_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue