note 88309 deleted from language.oop5.overloading by danbrown
| From: | danbrown@php.net | Date: | Tue, 20 Jan 2009 00:34:35 +0000 |
| Subject: | note 88309 deleted from language.oop5.overloading by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149494@lists.php.net to get a copy of this message | ||
Note Submitter: Mariusz Buk
----
Notice: __call will not help when you try to call not existing method at parent class.
example:
class foo
{
function __call($name, $args)
{
if ($name=="execute") { /* do something */ }
}
}
class bar extends foo
{
function execute()
{
// do something
parent::execute(); // <-- this will not work (fatal error)
}
}
is it bug or this should work like that?