php.net |  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
Votes:1
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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tux at vmail dot me
New email:
PHP Version: OS:

 

 [2015-08-09 17:15 UTC] tux at vmail dot me
Description:
------------
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:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-09 19:14 UTC] cmb@php.net
-Package: PHP Language Specification +Package: Scripting Engine problem
 [2015-08-09 21:58 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2015-08-09 21:58 UTC] requinix@php.net
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-2022 The PHP Group
All rights reserved.
Last updated: Mon Sep 26 22:05:54 2022 UTC