#46586 [Opn->Csd]: Lower case method name casting for static __call(), not for dynamic
| From: | jani@php.net | Date: | Mon, 17 Nov 2008 09:42:42 +0000 |
| Subject: | #46586 [Opn->Csd]: Lower case method name casting for static __call(), not for dynamic | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131017@lists.php.net to get a copy of this message | ||
ID: 46586
Updated by: jani@php.net
Reported By: zerspam at mail dot ru
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 5.2.6
New Comment:
Fixed in PHP_5_3 branch, won't fix in PHP_5_2.
Previous Comments:
------------------------------------------------------------------------
[2008-11-17 01:20:34] zerspam at mail dot ru
Description:
------------
I think the method name shouldn't cast to lower case if static calling
used.
Reproduce code:
---------------
class a
{
function __call($name, $p)
{
echo $name . ' ';
}
function foo()
{
$this->BaR();
self::BaR();
}
}
$a = new a();
$a->BaZ();
$a->foo();
Expected result:
----------------
BaZ BaR BaR
Actual result:
--------------
BaZ BaR bar
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46586&edit=1