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.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 49e2424a4a..faff14cbee 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1068,7 +1068,7 @@ ZEND_API int _object_init_ex(zval *arg, zend_class_entry *class_type ZEND_FILE_L
ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC TSRMLS_DC)
{
- return _object_init_ex(arg, zend_standard_class_def ZEND_FILE_LINE_RELAY_CC TSRMLS_CC);
+ return _object_init_ex(arg, U_CLASS_ENTRY(zend_standard_class_def) ZEND_FILE_LINE_RELAY_CC TSRMLS_CC);
}
@@ -2841,22 +2841,6 @@ ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, char *n
return value;
}
-ZEND_API zend_class_entry* zend_get_named_class_entry(char* name, int name_length TSRMLS_DC)
-{
- zend_class_entry **scope;
- char *lcname = do_alloca(name_length+1);
-
- zend_str_tolower_copy(lcname, name, name_length);
- if (zend_hash_find(CG(class_table), lcname, name_length+1, (void**)&scope) == FAILURE) {
- free_alloca(lcname);
- zend_error(E_ERROR, "Class '%s' is not defined", name);
- return NULL;
- }
- free_alloca(lcname);
- return *scope;
-}
-
-
/*
* Return the most precise string type out of the list.
* If none of the types are string types, IS_STRING is returned.