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
|
@ -65,7 +65,7 @@ PHP_FUNCTION(curl_file_create)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
static void curlfile_get_property(char *name, size_t name_len, INTERNAL_FUNCTION_PARAMETERS)
|
||||
static void curlfile_get_property(const char *name, size_t name_len, INTERNAL_FUNCTION_PARAMETERS)
|
||||
{
|
||||
zval *res, rv;
|
||||
|
||||
|
@ -74,7 +74,7 @@ static void curlfile_get_property(char *name, size_t name_len, INTERNAL_FUNCTION
|
|||
RETURN_COPY_DEREF(res);
|
||||
}
|
||||
|
||||
static void curlfile_set_property(char *name, size_t name_len, INTERNAL_FUNCTION_PARAMETERS)
|
||||
static void curlfile_set_property(const char *name, size_t name_len, INTERNAL_FUNCTION_PARAMETERS)
|
||||
{
|
||||
zend_string *arg;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue