From: Johannes Schlüter Date: Tue, 21 Feb 2006 21:42:54 +0000 (+0000) Subject: - Print deprecation info on reflection export X-Git-Tag: RELEASE_1_2~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0331d8c12252564ddf3f0ac58a5d2db639d0c9f;p=php - Print deprecation info on reflection export --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 894368e603..14dd817b73 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -707,6 +707,9 @@ 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 "); }