Constness to zend_get_object_type(), thanks Michael!

This commit is contained in:
Kalle Sommer Nielsen 2015-03-25 07:01:04 +01:00
parent c340b186f8
commit 02be73b5fa
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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))