php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22383 A class that inherits an abstract method must be abstract
Submitted: 2003-02-22 21:14 UTC Modified: 2003-06-01 13:01 UTC
From: helly@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2003-02-22 (dev) OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: helly@php.net
New email:
PHP Version: OS:

 

 [2003-02-22 21:14 UTC] helly@php.net
See file & output of:

php runtests.php tests/classes/abstract_inherit.phpt

Analyse:
When i first implemented abstract and visibility for ZE2
i changed the way do_inherit_method() worked. I used a
modified version of zend_hash_merge_ex() to merge the 
inherited functions. This mdification allowed me to change
the class entry of the class beeing defined.

Today this modification did not find its way into the 
engine because the current code uses better code. However
i guess we must have access to the current class in 
do_inherit_method().

For future modifications we may also need to mofify the 
inherited function in do_inherit_method().

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-18 18:17 UTC] thekid at thekid dot de
Running the test tests/classes/abstract_inherit.phpt shows "PASS".

Output is Fatal error: Cannot instantiate abstract class fail in /usr/home/thekid/devel/php/php5/- on line 10 as expected.
 [2003-06-01 13:01 UTC] helly@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC