From 61f78de4860b951b8548b745f40caef3b5369528 Mon Sep 17 00:00:00 2001 From: twosee Date: Sun, 26 May 2019 13:53:26 +0800 Subject: Constify some char* arguments or return values of ZEND_API Closes GH-4247. --- Zend/zend_constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zend/zend_constants.h') diff --git a/Zend/zend_constants.h b/Zend/zend_constants.h index 4d3335a490..75be4c32b2 100644 --- a/Zend/zend_constants.h +++ b/Zend/zend_constants.h @@ -79,8 +79,8 @@ ZEND_API void zend_register_bool_constant(const char *name, size_t name_len, zen ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_number); ZEND_API void zend_register_long_constant(const char *name, size_t name_len, zend_long lval, int flags, int module_number); ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number); -ZEND_API void zend_register_string_constant(const char *name, size_t name_len, char *strval, int flags, int module_number); -ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, char *strval, size_t strlen, int flags, int module_number); +ZEND_API void zend_register_string_constant(const char *name, size_t name_len, const char *strval, int flags, int module_number); +ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, const char *strval, size_t strlen, int flags, int module_number); ZEND_API int zend_register_constant(zend_constant *c); #ifdef ZTS void zend_copy_constants(HashTable *target, HashTable *sourc); -- cgit v1.2.1