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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 13:01:33 2024 UTC