php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8576 implement C style __FUNCTION__ constant
Submitted: 2001-01-07 13:18 UTC Modified: 2002-04-10 17:50 UTC
From: voudras at nospam dot swiftslayer dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: voudras at nospam dot swiftslayer dot org
New email:
PHP Version: OS:

 

 [2001-01-07 13:18 UTC] voudras at nospam dot swiftslayer dot org
I would love to see the __FUNCTION__ constant (which should return the name of the function its called from (or perhaps filename if not inside a funct?)).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-10 17:50 UTC] sniper@php.net
Just added __FUNCTION__ and __CLASS__ constants.
These will be available in PHP 4.3.0.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 14 04:01:27 2025 UTC