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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC