com php-src: Constify str in add_assoc_string_ex and add_assoc_stringl_ex: Zend/zend_API.c Zend/zend _API.h

From: Date: Wed, 07 Jun 2017 21:44:23 +0000
Subject: com php-src: Constify str in add_assoc_string_ex and add_assoc_stringl_ex: Zend/zend_API.c Zend/zend _API.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98028@lists.php.net to get a copy of this message
Commit: eb6614e4583343b9ae4cad13da815404c18cb943 Author: Jakub Zelenka <bukka@php.net> Sun, 4 Jun 2017 19:29:19 +0100 Committer: Nikita Popov <nikita.ppv@gmail.com> Wed, 7 Jun 2017 23:44:23 +0200 Parents: 7cce220be8a220089b797cc88a9b84faaed6f063 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=eb6614e4583343b9ae4cad13da815404c18cb943 Log: Constify str in add_assoc_string_ex and add_assoc_stringl_ex Changed paths: M Zend/zend_API.c M Zend/zend_API.h Diff: diff --git a/Zend/zend_API.c b/Zend/zend_API.c index b7cc405..fef56750a 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1407,7 +1407,7 @@ ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_s } /* }}} */ -ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str) /* {{{ */ +ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str) /* {{{ */ { zval *ret, tmp; @@ -1417,7 +1417,7 @@ ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, cha } /* }}} */ -ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length) /* {{{ */ +ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length) /* {{{ */ { zval *ret, tmp; diff --git a/Zend/zend_API.h b/Zend/zend_API..h index c685ae9..fe6e148 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -409,8 +409,8 @@ ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r); ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d); ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str); -ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str); -ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length); +ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, const char *str); +ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length); ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value); #define add_assoc_long(__arg, __key, __n) add_assoc_long_ex(__arg, __key, strlen(__key), __n)

« previous php.cvs (#98028) next »