From f0331d8c12252564ddf3f0ac58a5d2db639d0c9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Schl=C3=BCter?= Date: Tue, 21 Feb 2006 21:42:54 +0000 Subject: [PATCH] - Print deprecation info on reflection export --- ext/reflection/php_reflection.c | 3 +++ 1 file changed, 3 insertions(+) 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 "); } -- 2.40.0