php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20296 get_class_methods showing lower case class names
Submitted: 2002-11-07 02:58 UTC Modified: 2002-11-07 11:02 UTC
From: kkobashi at thegrid dot net Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 4.2.2 OS: Win NT 4.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kkobashi at thegrid dot net
New email:
PHP Version: OS:

 

 [2002-11-07 02:58 UTC] kkobashi at thegrid dot net
Using get_class_methods shows method names all in lower case. I expect this to show the method names as they were typed in for each function.

That is:

class A
{
   function HelloWorld()
   {
   }
}

$a = get_class_methods(A);
print_r($a);

shouldnt be helloworld but rather HelloWorld

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-07 03:09 UTC] kkobashi at thegrid dot net
The same goes true for get_parent_class()

Its shows class names in lower case
 [2002-11-07 11:02 UTC] msopacua@php.net
You expect wrong :)

PHP is case-insensitive, which in practice means, that internally it is converted to lowercase. This goes for variables/functions - anything except certain constants.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC