#31420 [Opn->Fbk]: Confusing error message (to me)
| From: | sniper@php.net | Date: | Mon, 10 Jan 2005 01:22:13 +0000 |
| Subject: | #31420 [Opn->Fbk]: Confusing error message (to me) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71671@lists.php.net to get a copy of this message | ||
ID: 31420
Updated by: sniper@php.net
Reported By: info at rhalff dot com
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: linux
PHP Version: 5.0.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-01-05 22:01:07] info at rhalff dot com
Description:
------------
This is not a bug in php itself, but the error message is confusing.
It tells me to make class bie abstract.
Where I think it should tell me I should implement method b.
Reproduce code:
---------------
<?php
interface a {
public function b();
}
class bie implements a { }
new bie;
?>
Expected result:
----------------
Fatal error: Class bie contains 1 abstract methods and must therefore
be declared abstract (a::b)
Actual result:
--------------
Fatal error: Class bie should implement method b from interface a in
/usr/src/test.php on line 16
or something like that.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31420&edit=1