summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 22ba08e55f..a3b2b1e4ae 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2213,6 +2213,20 @@ ZEND_API zend_class_entry *zend_register_internal_interface(zend_class_entry *or
}
/* }}} */
+ZEND_API int zend_register_class_alias_ex(char *name, int name_len, zend_class_entry *ce TSRMLS_DC) /* {{{ */
+{
+ char *lcname = zend_str_tolower_dup(name, name_len);
+ int ret;
+
+ ret = zend_hash_add(CG(class_table), lcname, name_len+1, &ce, sizeof(zend_class_entry *), NULL);
+ efree(lcname);
+ if (ret == SUCCESS) {
+ ce->refcount++;
+ }
+ return ret;
+}
+/* }}} */
+
ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length, zend_bool is_ref, int num_symbol_tables, ...) /* {{{ */
{
HashTable *symbol_table;