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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC