mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +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
|
@ -2073,7 +2073,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
|
|||
struct curl_slist *slist = NULL;
|
||||
|
||||
if (Z_TYPE_P(zvalue) != IS_ARRAY) {
|
||||
char *name = NULL;
|
||||
const char *name = NULL;
|
||||
switch (option) {
|
||||
case CURLOPT_HTTPHEADER:
|
||||
name = "CURLOPT_HTTPHEADER";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue