mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
- Constified method_name arg. in zend_get_user_call_function() and zend_get_user_callstatic_function()
This commit is contained in:
parent
a3d7eab5a3
commit
35920eec26
@ -782,7 +782,7 @@ static inline zend_class_entry * zend_get_function_root_class(zend_function *fbc
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static inline union _zend_function *zend_get_user_call_function(zend_class_entry *ce, zstr method_name, int method_len) /* {{{ */
|
||||
static inline union _zend_function *zend_get_user_call_function(zend_class_entry *ce, const zstr method_name, int method_len) /* {{{ */
|
||||
{
|
||||
zend_internal_function *call_user_call = emalloc(sizeof(zend_internal_function));
|
||||
|
||||
@ -920,7 +920,7 @@ ZEND_API void zend_std_callstatic_user_call(INTERNAL_FUNCTION_PARAMETERS) /* {{{
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
static inline union _zend_function *zend_get_user_callstatic_function(zend_class_entry *ce, zstr method_name, int method_len) /* {{{ */
|
||||
static inline union _zend_function *zend_get_user_callstatic_function(zend_class_entry *ce, const zstr method_name, int method_len) /* {{{ */
|
||||
{
|
||||
zend_internal_function *callstatic_user_call = emalloc(sizeof(zend_internal_function));
|
||||
callstatic_user_call->type = ZEND_INTERNAL_FUNCTION;
|
||||
|
Loading…
Reference in New Issue
Block a user