#30542 [Bgs]: Using Paamayim Nekudotayim makes lowcase on function
| From: | jsgoupil at lookstrike dot com | Date: | Sat, 23 Oct 2004 15:11:33 +0000 |
| Subject: | #30542 [Bgs]: Using Paamayim Nekudotayim makes lowcase on function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-68012@lists.php.net to get a copy of this message | ||
ID: 30542
User updated by: jsgoupil at lookstrike dot com
Reported By: jsgoupil at lookstrike dot com
Status: Bogus
Bug Type: Zend Engine 2 problem
Operating System: WinXP
PHP Version: 5.0.2
New Comment:
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...
Previous Comments:
------------------------------------------------------------------------
[2004-10-23 17:04:45] 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 16:55:05] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30542&edit=1