|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62552 Feature Request: Closure parameter syntax enhancement
Submitted: 2012-07-13 13:22 UTC Modified: 2012-07-16 03:10 UTC
From: k at webnfo dot com Assigned:
Status: Duplicate Package: *General Issues
PHP Version: 5.4.4 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 - 10 = ?
Subscribe to this entry?

 [2012-07-13 13:22 UTC] k at webnfo dot com
Add 'AS' keyword after 'USE'

It will work like this:

function($quantity, $product) use ($tax AS $t , &$total as $a){
  echo $t; //$t is the local name alias of $tax

If implemented, will be more consistent with namespace's use .. as .. statement


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-16 03:10 UTC]
-Status: Open +Status: Duplicate
 [2012-07-16 03:10 UTC]
this is a dup to #61682
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 21 21:03:32 2021 UTC