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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 16 21:03:33 2021 UTC