php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31420 Confusing error message (to me)
Submitted: 2005-01-05 22:01 UTC Modified: 2005-02-05 01:00 UTC
From: info at rhalff dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.2 OS: linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at rhalff dot com
New email:
PHP Version: OS:

 

 [2005-01-05 22:01 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-19 22:58 UTC] info at rhalff dot com
I notice I've mixed up the expected and actual result,
so actual should be expected and visa versa.
 [2005-01-26 04:29 UTC] 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-02-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC