|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70222 Alias of function as func
Submitted: 2015-08-09 17:15 UTC Modified: 2015-08-23 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: tux at vmail dot me Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-08-09 17:15 UTC] tux at vmail dot me
Can we please have alias of "function" as "func". Note this request is NOT to replace "function" word, but to allow also to use alias of it as in "func".

Function Name Now:
function test($str) { return trim($str); }

Function Name Wanted:
func test($str) { return trim($str); }

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-09 19:14 UTC]
-Package: PHP Language Specification +Package: Scripting Engine problem
 [2015-08-09 21:58 UTC]
-Status: Open +Status: Feedback
 [2015-08-09 21:58 UTC]
Why? What are the tangible benefits to doing this, besides saving four keystrokes? What problem does it solve? What will happen to the people who already use "func" for names?
 [2015-08-23 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 05:01:29 2024 UTC