php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30542 Using Paamayim Nekudotayim makes lowcase on function
Submitted: 2004-10-23 16:55 UTC Modified: 2004-10-24 01:04 UTC
From: jsgoupil at lookstrike dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.2 OS: WinXP
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jsgoupil at lookstrike dot com
New email:
PHP Version: OS:

 

 [2004-10-23 16:55 UTC] jsgoupil at lookstrike dot com
Description:
------------
When we use the Paamayim Nekudotayim with class on an unexistant function, this function is written in lowcase.
It's only a little bug and doesn't really affect me ;)

Reproduce code:
---------------
<?php
class A {

}

class C extends A {
	public function test(){
		echo parent::TESTING();
		echo $this->TESTING(); // Comment line above to get this error...
	}
}

$c = new C();
echo $c->test();
?>


Expected result:
----------------
Fatal error: Call to undefined method A::TESTING() in D:\www\LookStrike\ls_lite\a.php on line 8

and

Fatal error: Call to undefined method C::TESTING() in D:\www\LookStrike\ls_lite\a.php on line 9

Actual result:
--------------
Fatal error: Call to undefined method A::testing() in D:\www\LookStrike\ls_lite\a.php on line 8

and

Fatal error: Call to undefined method C::TESTING() in D:\www\LookStrike\ls_lite\a.php on line 9

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-23 17:04 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Function names are case insensitive.
 [2004-10-23 17:11 UTC] jsgoupil at lookstrike dot com
I know that functions are case insensitive (and classes too) but to keep the same "pattern", it should display the same error as we use with $this-> keyword...
 [2004-10-24 01:04 UTC] derick@php.net
PHP doesn't remember the original case as that would make things slower and it uses more memory. It's still not a bug, but just expected behavior.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 23:01:33 2025 UTC