#46586 [NEW]: Lower case method name casting for static __call(), not for dynamic
| From: | zerspam at mail dot ru | Date: | Mon, 17 Nov 2008 01:20:35 +0000 |
| Subject: | #46586 [NEW]: Lower case method name casting for static __call(), not for dynamic | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131008@lists.php.net to get a copy of this message | ||
From: zerspam at mail dot ru
Operating system:
PHP version: 5.2.6
PHP Bug Type: Scripting Engine problem
Bug description: Lower case method name casting for static __call(), not for dynamic
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 bug report at http://bugs.php.net/?id=46586&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46586&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46586&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46586&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46586&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46586&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46586&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46586&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46586&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46586&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46586&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46586&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46586&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46586&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46586&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46586&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46586&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46586&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46586&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46586&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46586&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46586&r=mysqlcfg