php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48663 ReflectionMethod documentation cites getClosure() method despite its removal
Submitted: 2009-06-23 14:44 UTC Modified: 2009-06-23 15:43 UTC
From: swquinn at gmail dot com Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: swquinn at gmail dot com
New email:
PHP Version: OS:

 

 [2009-06-23 14:44 UTC] swquinn at gmail dot com
Description:
------------
The ReflectionMethod documentation (found at: http://us.php.net/manual/en/language.oop5.reflection.php#language.oop5.reflection.reflectionmethod) cites the existence of a method:

public mixed getClosure() /* as of PHP 5.3.0 */

... despite its removal as mentioned by the following RFC: http://wiki.php.net/rfc/closures/removal-of-this.

This implies functionality exists, even though it does not.  A note, or update to the documentation would be very helpful to relieve early adopters from chasing removed functionality.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-23 15:43 UTC] kalle@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:00:02 2026 UTC