]> granicus.if.org Git - php/commitdiff
Don't identify alias'ed functions
authorMarcus Boerger <helly@php.net>
Sun, 24 Aug 2003 16:35:58 +0000 (16:35 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 24 Aug 2003 16:35:58 +0000 (16:35 +0000)
Zend/zend_API.h
Zend/zend_compile.h
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 1dcabbb2471038d8e0af65a5c62dc4aaed631361..9703b52b66f622a49a46609c6b3733633c6d66e6 100644 (file)
@@ -50,7 +50,7 @@ typedef struct _zend_function_entry {
 
 #define ZEND_NAMED_FE(zend_name, name, arg_info)       ZEND_FENTRY(zend_name, name, arg_info, 0)
 #define ZEND_FE(name, arg_info)                                                ZEND_FENTRY(name, ZEND_FN(name), arg_info, 0)
-#define ZEND_FALIAS(name, alias, arg_info)                     ZEND_FENTRY(name, ZEND_FN(alias), arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ALIAS)
+#define ZEND_FALIAS(name, alias, arg_info)                     ZEND_FENTRY(name, ZEND_FN(alias), arg_info, 0)
 #define ZEND_ME(classname, name, arg_info, flags)      ZEND_FENTRY(name, ZEND_FN(classname##_##name), arg_info, flags)
 #define ZEND_ABSTRACT_ME(classname, name, arg_info)    ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
 
index a62d5ef386bf5e1be28febfc4af97c9d94f38d5f..16c0141f173a2de1b46d2b609132ec8a3f385de9 100644 (file)
@@ -113,8 +113,6 @@ typedef struct _zend_brk_cont_element {
 #define ZEND_ACC_CTOR          0x2000
 #define ZEND_ACC_DTOR          0x4000 
 
-#define ZEND_ACC_ALIAS         0x8000
-
 char *zend_visibility_string(zend_uint fn_flags);
 
 
index 8562256d9bebe7c5e4db269ea3dbc36a85f82318..79024c54ceb8ec100be3355cd070e9325c604c4e 100644 (file)
@@ -357,9 +357,6 @@ static void _function_string(string *str, zend_function *fptr, char* indent TSRM
 
        string_printf(str, fptr->common.scope ? "%sMethod [ " : "%sFunction [ ", indent);
        string_printf(str, (fptr->type == ZEND_USER_FUNCTION) ? "<user> " : "<internal> ");
-       if (fptr->common.fn_flags & ZEND_ACC_ALIAS) {
-               string_printf(str, "<alias> ");
-       }
        if (fptr->common.fn_flags & ZEND_ACC_CTOR) {
                string_printf(str, "<ctor> ");
        }
@@ -643,14 +640,6 @@ ZEND_METHOD(reflection_function, isuserdefined)
 }
 /* }}} */
 
-/* {{{ proto public bool Reflection_Function::isAlias()
-   Returns whether this method is static */
-ZEND_METHOD(reflection_function, isalias)
-{
-       _function_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_ALIAS);
-}
-/* }}} */
-
 /* {{{ proto public string Reflection_Function::getFileName()
    Returns the filename of the file this function was declared in */
 ZEND_METHOD(reflection_function, getfilename)
index 8562256d9bebe7c5e4db269ea3dbc36a85f82318..79024c54ceb8ec100be3355cd070e9325c604c4e 100644 (file)
@@ -357,9 +357,6 @@ static void _function_string(string *str, zend_function *fptr, char* indent TSRM
 
        string_printf(str, fptr->common.scope ? "%sMethod [ " : "%sFunction [ ", indent);
        string_printf(str, (fptr->type == ZEND_USER_FUNCTION) ? "<user> " : "<internal> ");
-       if (fptr->common.fn_flags & ZEND_ACC_ALIAS) {
-               string_printf(str, "<alias> ");
-       }
        if (fptr->common.fn_flags & ZEND_ACC_CTOR) {
                string_printf(str, "<ctor> ");
        }
@@ -643,14 +640,6 @@ ZEND_METHOD(reflection_function, isuserdefined)
 }
 /* }}} */
 
-/* {{{ proto public bool Reflection_Function::isAlias()
-   Returns whether this method is static */
-ZEND_METHOD(reflection_function, isalias)
-{
-       _function_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_ALIAS);
-}
-/* }}} */
-
 /* {{{ proto public string Reflection_Function::getFileName()
    Returns the filename of the file this function was declared in */
 ZEND_METHOD(reflection_function, getfilename)