]> granicus.if.org Git - php/commitdiff
- deprecated belongs in the flag area, not in the keyword area
authorMarcus Boerger <helly@php.net>
Sat, 25 Feb 2006 18:05:16 +0000 (18:05 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 25 Feb 2006 18:05:16 +0000 (18:05 +0000)
ext/reflection/php_reflection.c

index ae365e500074b229a00a4cb566b0b3c8a277cc49..098196a5f5e4339e6b039e45492d8990711b1ee7 100644 (file)
@@ -680,6 +680,9 @@ static void _function_string(string *str, zend_function *fptr, zend_class_entry
 
        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_DEPRECATED) {
+               string_printf(str, ", deprecated");
+       }
        if (fptr->type == ZEND_INTERNAL_FUNCTION && ((zend_internal_function*)fptr)->module) {
                string_printf(str, ":%s", ((zend_internal_function*)fptr)->module->name);
        }
@@ -708,9 +711,6 @@ static void _function_string(string *str, zend_function *fptr, zend_class_entry
        }
        string_printf(str, "> ");
 
-       if (fptr->common.fn_flags & ZEND_ACC_DEPRECATED) {
-               string_printf(str, "DEPRECATED ");
-       }
        if (fptr->common.fn_flags & ZEND_ACC_ABSTRACT) {
                string_printf(str, "abstract ");
        }