note 94212 added to reflectionfunctionabstract.isdeprecated
| From: | matthieu at osu1 dot php dot net | Date: | Thu, 22 Oct 2009 19:27:13 +0000 |
| Subject: | note 94212 added to reflectionfunctionabstract.isdeprecated | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161988@lists.php.net to get a copy of this message | ||
this does not check for the @deprecated doc comment, but instead returns true for a PHP core
deprecated function.
If you want to test for a function marked with the @deprecated doc comment, you can simply use
if( false === strstr($method->getDocComment(), '@deprecated') ) {
// function/method marked as deprecated
}
----
Server IP: 69.147.83.197
Probable Submitter: 82.224.210.197
----
Manual Page -- http://www.php.net/manual/en/reflectionfunctionabstract.isdeprecated.php
Edit -- https://master.php.net/note/edit/94212
Del: integrated -- https://master.php.net/note/delete/94212/integrated
Del: useless -- https://master.php.net/note/delete/94212/useless
Del: bad code -- https://master.php.net/note/delete/94212/bad+code
Del: spam -- https://master.php.net/note/delete/94212/spam
Del: non-english -- https://master.php.net/note/delete/94212/non-english
Del: in docs -- https://master.php.net/note/delete/94212/in+docs
Del: other reasons-- https://master.php.net/note/delete/94212
Reject -- https://master.php.net/note/reject/94212
Search -- https://master.php.net/manage/user-notes.php