From: [EMAIL PROTECTED]
Operating system:
PHP version: 5.3CVS-2008-01-23 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: Overloading methods can be static and non-public
Description:
------------
Says the documentation:
"All overloading methods must not be defined as static. All overloading
methods must be defined as public."
However, this rule doesn't exists.
Reproduce code:
---------------
<?php
class foobar
{
static private function __call($x, $y) {
printf("[[%s]]\n", $x);
}
}
$foo = new foobar;
$foo->test();
?>
Expected result:
----------------
Some error message.
Actual result:
--------------
[[test]]
--
Edit bug report at http://bugs.php.net/?id=43924&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43924&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43924&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43924&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43924&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43924&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43924&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43924&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43924&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43924&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43924&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43924&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43924&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43924&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43924&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43924&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43924&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43924&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43924&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43924&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43924&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43924&r=mysqlcfg