From 257a95f69fff4957011c797941e00768482e7222 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 25 Feb 2006 18:05:16 +0000 Subject: [PATCH] - deprecated belongs in the flag area, not in the keyword area --- ext/reflection/php_reflection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index ae365e5000..098196a5f5 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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) ? "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 "); } -- 2.40.0