Doc #73661 [Ver]: Closure support not mentioned
| From: | cmb@php.net | Date: | Wed, 07 Dec 2016 15:21:12 +0000 |
| Subject: | Doc #73661 [Ver]: Closure support not mentioned | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14189@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73661&edit=1
ID: 73661
Updated by: cmb@php.net
Reported by: rpbiwer at gmail dot com
Summary: Closure support not mentioned
Status: Verified
Type: Documentation Problem
Package: runkit
PHP Version: 5.6.28
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Okay, some quick tests reveal that only Closures are supported (opposed to general callables).
Previous Comments:
------------------------------------------------------------------------
[2016-12-06 12:03:55] 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-05 19:54:53] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73661&edit=1