mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Constness to zend_get_object_type(), thanks Michael!
This commit is contained in:
parent
c340b186f8
commit
02be73b5fa
@ -4137,7 +4137,7 @@ ZEND_API void zend_ctor_make_null(zend_execute_data *execute_data) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API char *zend_get_object_type(zend_class_entry *ce) /* {{{ */
|
||||
ZEND_API const char *zend_get_object_type(const zend_class_entry *ce) /* {{{ */
|
||||
{
|
||||
if(ce->ce_flags & ZEND_ACC_TRAIT) {
|
||||
return "trait";
|
||||
|
@ -540,7 +540,7 @@ ZEND_API zend_string *zend_resolve_method_name(zend_class_entry *ce, zend_functi
|
||||
|
||||
ZEND_API void zend_ctor_make_null(zend_execute_data *execute_data);
|
||||
|
||||
ZEND_API char *zend_get_object_type(zend_class_entry *ce);
|
||||
ZEND_API const char *zend_get_object_type(const zend_class_entry *ce);
|
||||
|
||||
#define add_method(arg, key, method) add_assoc_function((arg), (key), (method))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user