#22383 [Com]: A class that inherits an abstrcat method must be abstract

From: Date: Fri, 18 Apr 2003 23:17:31 +0000
Subject: #22383 [Com]: A class that inherits an abstrcat method must be abstract
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37878@lists.php.net to get a copy of this message
 ID:               22383
 Comment by:       thekid at thekid dot de
 Reported By:      helly@php.net
 Status:           Open
 Bug Type:         Zend Engine 2 problem
 Operating System: ALL
 PHP Version:      5CVS-2003-02-22 (dev)
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2003-02-22 21:14:05] 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().

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22383&edit=1



Thread (3 messages)

« previous php.bugs (#37878) next »