php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73661 Closure support not mentioned
Submitted: 2016-12-05 19:54 UTC Modified: 2016-12-07 15:37 UTC
From: rpbiwer at gmail dot com Assigned: cmb (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.6.28 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rpbiwer at gmail dot com
New email:
PHP Version: OS:

 

 [2016-12-05 19:54 UTC] rpbiwer at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.runkit-function-add
---

runkit now accepts a closure as the second argument as an alternative to the "params" and "code" strings, but this isn't mentioned in the documentation.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-06 12:03 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-12-06 12:03 UTC] cmb@php.net
Indeed. I wonder, however, whether a general callable is accepted, or if it has to be an instance of Closure.
 [2016-12-07 15:18 UTC] cmb@php.net
Okay, some quick tests reveal that only Closures are supported (opposed to general callables).
 [2016-12-07 15:36 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=341329
Log: Fix #73661: Closure support not mentioned
 [2016-12-07 15:37 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-12-07 15:37 UTC] cmb@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.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5a389c052c1ef97601b17f6dfa7f6d3f9d97a156
Log: Fix #73661: Closure support not mentioned
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 01:01:31 2024 UTC