php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18690 __function__ results allways lowercase names
Submitted: 2002-08-01 14:14 UTC Modified: 2002-08-01 19:13 UTC
From: alberty at neptunelabs dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4CVS-2002-08-01 OS: i686-pc-linux-gnu
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: alberty at neptunelabs dot de
New email:
PHP Version: OS:

 

 [2002-08-01 14:14 UTC] alberty at neptunelabs dot de
Hi,

the new __function__ and __class__ constants results allways
lowercase function and class names, although the names contains
upper case chars.

<?php
class MyObject{
	function FooBar(){
		return array(__class__,__function__);
	}
}

print_r(MyObject::FooBar());
?>

results myobject and foobar instead of MyObject and FooBar.

Regards,

Steve

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-01 19:13 UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 15:00:03 2025 UTC