#31420 [Fbk->Opn]: Confusing error message (to me)
| From: | info at rhalff dot com | Date: | Wed, 19 Jan 2005 21:58:29 +0000 |
| Subject: | #31420 [Fbk->Opn]: Confusing error message (to me) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72486@lists.php.net to get a copy of this message | ||
ID: 31420
User updated by: info at rhalff dot com
Reported By: info at rhalff dot com
-Status: Feedback
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: linux
PHP Version: 5.0.2
New Comment:
I notice I've mixed up the expected and actual result,
so actual should be expected and visa versa.
Previous Comments:
------------------------------------------------------------------------
[2005-01-10 02:22:12] sniper@php.net
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
------------------------------------------------------------------------
[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