#30542 [NEW]: Using Paamayim Nekudotayim makes lowcase on function
| From: | jsgoupil at lookstrike dot com | Date: | Sat, 23 Oct 2004 14:55:05 +0000 |
| Subject: | #30542 [NEW]: Using Paamayim Nekudotayim makes lowcase on function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68008@lists.php.net to get a copy of this message | ||
From: jsgoupil at lookstrike dot com
Operating system: WinXP
PHP version: 5.0.2
PHP Bug Type: Zend Engine 2 problem
Bug description: Using Paamayim Nekudotayim makes lowcase on function
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 bug report at http://bugs.php.net/?id=30542&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30542&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30542&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30542&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30542&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30542&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30542&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30542&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30542&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30542&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30542&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30542&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30542&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30542&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30542&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30542&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30542&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30542&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30542&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30542&r=mysqlcfg