From: [EMAIL PROTECTED]
Operating system: *
PHP version: 5.3CVS-2008-03-12 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: Incompleate reporting about abstract methods
Description:
------------
On some condition PHP may verify abstract method twice.
First time it does it on early binding and the second time after executing
of all ZEND_ADD_INTERFACE opcodes. As result we have not only speed
penalty, but also an incorrect error message.
Reproduce code:
---------------
<?php
abstract class A {
abstract function foo();
}
interface B {
function bar();
}
class C extends A implements B {
}
?>
Expected result:
----------------
Fatal error: Class C contains 2 abstract methods and must therefore be
declared abstract or implement the remaining methods (A::foo, B::bar)
Actual result:
--------------
Fatal error: Class C contains 1 abstract method and must therefore be
declared abstract or implement the remaining methods (A::foo)
--
Edit bug report at http://bugs.php.net/?id=44414&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44414&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44414&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44414&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44414&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44414&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44414&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44414&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44414&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44414&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44414&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44414&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44414&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44414&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44414&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44414&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44414&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44414&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44414&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44414&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44414&r=mysqlcfg