ID: 46586
Updated by: [EMAIL PROTECTED]
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