From: sander at snapworks dot nl
Operating system: linux 2.6.20-1.2944.fc6
PHP version: 5.2.2RC1
PHP Bug Type: Scripting Engine problem
Bug description: static method in interface
Description:
------------
PHP doesn't allow static methods in interfaces to have a body.
Reproduce code:
---------------
<?php
interface SomeInterface {
static public function doSomething() {
}
}
?>
Expected result:
----------------
A blank page indicating non-failure :) Static methods in interfaces
definitely should be allowed to have a body. Maybe it's not a common
practise, but it's at times convenient.
Actual result:
--------------
Fatal error: Interface function SomeInterface::doSomething() cannot
contain body in /var/www/html/workspace/test.php on line 4
--
Edit bug report at http://bugs.php.net/?id=41129&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41129&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41129&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41129&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41129&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41129&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41129&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41129&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41129&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41129&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41129&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41129&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41129&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41129&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41129&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41129&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41129&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41129&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41129&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41129&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41129&r=mysqlcfg