php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52996 Wrong parameter type in ReflectionFunction::_construct()
Submitted: 2010-10-06 00:02 UTC Modified: 2010-10-06 12:34 UTC
From: heuripedes at gmail dot com Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: heuripedes at gmail dot com
New email:
PHP Version: OS:

 

 [2010-10-06 00:02 UTC] heuripedes at gmail dot com
Description:
------------
The documentation page for the __construct() method of
ReflectionFunction says it require a string parameter,
but it actually need a callback parameter. Otherwise
it would not support closure reflection.

http://www.php.net/manual/en/reflectionfunction.construct.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-06 12:24 UTC] rquadling@php.net
-Assigned To: +Assigned To: rquadling
 [2010-10-06 12:33 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=304139
Log: Constructor's parameter supports closures as of PHP5.3.0.
Updated example and added changelog.
Fix bug #52996
 [2010-10-06 12:34 UTC] rquadling@php.net
-Status: Assigned +Status: Closed
 [2010-10-06 12:34 UTC] rquadling@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=512ae805f645c59ad590a3cefc8b287db4f709d9
Log: Constructor's parameter supports closures as of PHP5.3.0. Updated example and added changelog. Fix bug #52996
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC