Bug #60639 [Opn]: ReflectionFunction::IS_DEPRECATED is not used anywhere

From: Date: Wed, 05 Sep 2018 14:48:20 +0000
Subject: Bug #60639 [Opn]: ReflectionFunction::IS_DEPRECATED is not used anywhere
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216894@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60639&edit=1 ID: 60639 Updated by: cmb@php.net Reported by: vrana@php.net Summary: ReflectionFunction::IS_DEPRECATED is not used anywhere Status: Open Type: Bug Package: Reflection related Operating System: Irrelevant PHP Version: trunk-SVN-2012-01-03 (SVN) Block user comment: N Private report: N New Comment: ReflectionFunction::IS_DEPRECATED has been introduced with commit 941b065[1], likely in preparation for something like ReflectionFunction::getModifiers() (which would presently make not much sense, though, since the only function modifier is ZEND_ACC_DEPRECATED). It can already be used with ReflectionMethod::getModifiers(), but should probably be moved to ReflectionFunctionAbstract, which would be a BC break, though. [1] <http://git.php.net/?p=php-src.git;a=commit;h=941b0651dc7f1f6ca4f5fc88acde4d2a50632445> Previous Comments: ------------------------------------------------------------------------ [2012-01-03 05:44:37] vrana@php.net Description: ------------ The ReflectionFunction class defines a constant IS_DEPRECATED which is not used anywhere. There is a method ReflectionFunction::isDeprecated() but it doesn't use this constant. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60639&edit=1

« previous php.bugs (#216894) next »