diff options
author | twosee <twose@qq.com> | 2019-05-26 13:53:26 +0800 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-12 16:49:32 +0200 |
commit | 61f78de4860b951b8548b745f40caef3b5369528 (patch) | |
tree | 37f2ba92c4f37d630e0312cf238e94587f25c1cf /Zend/zend_API.c | |
parent | ff8002fc7c3cbf9ee01d6d68cccbbd9460314ce4 (diff) | |
download | php-git-61f78de4860b951b8548b745f40caef3b5369528.tar.gz |
Constify some char* arguments or return values of ZEND_API
Closes GH-4247.
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 37a002f003..5904ba5c33 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -95,7 +95,7 @@ ZEND_API ZEND_COLD void zend_wrong_param_count(void) /* {{{ */ /* }}} */ /* Argument parsing API -- andrei */ -ZEND_API char *zend_get_type_by_const(int type) /* {{{ */ +ZEND_API const char *zend_get_type_by_const(int type) /* {{{ */ { switch(type) { case IS_FALSE: @@ -130,7 +130,7 @@ ZEND_API char *zend_get_type_by_const(int type) /* {{{ */ } /* }}} */ -ZEND_API char *zend_zval_type_name(const zval *arg) /* {{{ */ +ZEND_API const char *zend_zval_type_name(const zval *arg) /* {{{ */ { ZVAL_DEREF(arg); return zend_get_type_by_const(Z_TYPE_P(arg)); @@ -218,7 +218,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_type_error(int num, z } /* }}} */ -ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num, char *name, zval *arg) /* {{{ */ +ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_class_error(int num, const char *name, zval *arg) /* {{{ */ { const char *space; const char *class_name = get_active_class_name(&space); |