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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Tue Nov 30 05:03:17 2021 UTC