diff options
| author | Stanislav Malyshev <stas@php.net> | 2003-06-04 08:16:55 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2003-06-04 08:16:55 +0000 |
| commit | 039c174337e9d2324a997e325a54dc3c0b187243 (patch) | |
| tree | 2d3b15130e5e9428ce99dfe10689b5cbcb1c012e /Zend/zend_builtin_functions.c | |
| parent | d74d05f431eef9b86f4d2475b84da098f02c911d (diff) | |
| download | php-git-039c174337e9d2324a997e325a54dc3c0b187243.tar.gz | |
rm namespace leftovers
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 3a86131c40..4cc1fec259 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -535,12 +535,7 @@ ZEND_FUNCTION(get_class) RETURN_FALSE; } - if(ce->ns) { - zend_make_full_classname(ce, &name, &name_len); - RETURN_STRINGL(name, name_len, 0); - } else { - RETURN_STRINGL(ce->name, ce->name_length, 1); - } + RETURN_STRINGL(ce->name, ce->name_length, 1); } RETURN_STRINGL(name, name_len, 0); @@ -567,8 +562,7 @@ ZEND_FUNCTION(get_parent_class) && Z_OBJ_HT_PP(arg)->get_class_name(*arg, &name, &name_length, 1 TSRMLS_CC) == SUCCESS) { RETURN_STRINGL(name, name_length, 0); } else if (Z_OBJ_HT_PP(arg)->get_class_entry && (ce = zend_get_class_entry(*arg TSRMLS_CC))) { - zend_make_full_classname(ce, &name, &name_length); - RETURN_STRINGL(name, name_length, 0); + RETURN_STRINGL(ce->name, ce->name_length, 1); } else { RETURN_FALSE; } @@ -583,8 +577,7 @@ ZEND_FUNCTION(get_parent_class) } if (ce && ce->parent) { - zend_make_full_classname(ce->parent, &name, &name_length); - RETURN_STRINGL(name, name_length, 0); + RETURN_STRINGL(ce->parent->name, ce->parent->name_length, 1); } else { RETURN_FALSE; } |
