mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix datatype mismatches
and convert len args to size_t where the underlaying API uses zend_string
This commit is contained in:
parent
35576ea0ac
commit
f7d3355e75
3 changed files with 8 additions and 8 deletions
|
@ -2699,7 +2699,7 @@ ZEND_API zend_class_entry *zend_register_internal_interface(zend_class_entry *or
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API int zend_register_class_alias_ex(const char *name, int name_len, zend_class_entry *ce TSRMLS_DC) /* {{{ */
|
||||
ZEND_API int zend_register_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
zend_string *lcname;
|
||||
|
||||
|
@ -2759,7 +2759,7 @@ static zend_function_entry disabled_function[] = {
|
|||
ZEND_FE_END
|
||||
};
|
||||
|
||||
ZEND_API int zend_disable_function(char *function_name, uint function_name_length TSRMLS_DC) /* {{{ */
|
||||
ZEND_API int zend_disable_function(char *function_name, size_t function_name_length TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -2792,7 +2792,7 @@ static const zend_function_entry disabled_class_new[] = {
|
|||
ZEND_FE_END
|
||||
};
|
||||
|
||||
ZEND_API int zend_disable_class(char *class_name, uint class_name_length TSRMLS_DC) /* {{{ */
|
||||
ZEND_API int zend_disable_class(char *class_name, size_t class_name_length TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
zend_class_entry *disabled_class;
|
||||
zend_string *key;
|
||||
|
|
|
@ -276,15 +276,15 @@ ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *cla
|
|||
ZEND_API zend_class_entry *zend_register_internal_interface(zend_class_entry *orig_class_entry TSRMLS_DC);
|
||||
ZEND_API void zend_class_implements(zend_class_entry *class_entry TSRMLS_DC, int num_interfaces, ...);
|
||||
|
||||
ZEND_API int zend_register_class_alias_ex(const char *name, int name_len, zend_class_entry *ce TSRMLS_DC);
|
||||
ZEND_API int zend_register_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce TSRMLS_DC);
|
||||
|
||||
#define zend_register_class_alias(name, ce) \
|
||||
zend_register_class_alias_ex(name, sizeof(name)-1, ce TSRMLS_CC)
|
||||
#define zend_register_ns_class_alias(ns, name, ce) \
|
||||
zend_register_class_alias_ex(ZEND_NS_NAME(ns, name), sizeof(ZEND_NS_NAME(ns, name))-1, ce TSRMLS_CC)
|
||||
|
||||
ZEND_API int zend_disable_function(char *function_name, uint function_name_length TSRMLS_DC);
|
||||
ZEND_API int zend_disable_class(char *class_name, uint class_name_length TSRMLS_DC);
|
||||
ZEND_API int zend_disable_function(char *function_name, size_t function_name_length TSRMLS_DC);
|
||||
ZEND_API int zend_disable_class(char *class_name, size_t class_name_length TSRMLS_DC);
|
||||
|
||||
ZEND_API void zend_wrong_param_count(TSRMLS_D);
|
||||
|
||||
|
|
|
@ -1059,7 +1059,7 @@ ZEND_FUNCTION(get_object_vars)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
static int same_name(const char *key, const char *name, uint32_t name_len) /* {{{ */
|
||||
static int same_name(const char *key, const char *name, size_t name_len) /* {{{ */
|
||||
{
|
||||
char *lcname = zend_str_tolower_dup(name, name_len);
|
||||
int ret = memcmp(lcname, key, name_len) == 0;
|
||||
|
@ -1102,7 +1102,7 @@ ZEND_FUNCTION(get_class_methods)
|
|||
zend_check_protected(mptr->common.scope, EG(scope)))
|
||||
|| ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) &&
|
||||
EG(scope) == mptr->common.scope)))) {
|
||||
uint len = mptr->common.function_name->len;
|
||||
size_t len = mptr->common.function_name->len;
|
||||
|
||||
/* Do not display old-style inherited constructors */
|
||||
if (!key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue