Req #46988 [Opn->Fbk]: 2 requests: Closures Recursion & __callFunction
| From: | levim@php.net | Date: | Wed, 07 Jan 2015 20:48:00 +0000 |
| Subject: | Req #46988 [Opn->Fbk]: 2 requests: Closures Recursion & __callFunction | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189714@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=46988&edit=1
ID: 46988
Updated by: levim@php.net
Reported by: info at netmosfera dot it
Summary: 2 requests: Closures Recursion & __callFunction
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
-PHP Version: 5.3.0alpha3
+PHP Version: 5.3.0
Block user comment: N
Private report: N
New Comment:
It is unclear what you are asking for, could you please clarify?
Previous Comments:
------------------------------------------------------------------------
[2009-01-02 01:05:57] info at netmosfera dot it
Description:
------------
hello, i have two requests for next releases of php
like __call & __callStatic, __callFunction... for dynamic function overloading
and recursion for closures
Reproduce code:
---------------
function __callFunction($funcname, Array $arguments)
{
echo $funcname;
}
notDefined();
---------------
function($increment) use ($i = 0)
{
// code here
// code here
echo ++$increment;
if ($increment==20) return;
function use($increment);
};
alternative syntax:
recursion use($increment);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=46988&edit=1