ID: 31582
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4CVS-2005-01-17 (stable)
New Comment:
agh... try again..
class ddo_base {
function __call($method,$args,&$return) {
echo "METHOD:".$method;
return true;
}
}
class ddo extends ddo_base {
}
overload("ddo_base");
$x = new ddo_base;
$x->helloWorld();
$x = new ddo;
$x->helloWorld();
Previous Comments:
------------------------------------------------------------------------
[2005-01-17 11:37:13] [EMAIL PROTECTED]
Example code was wrong
class ddo_base {
function __call($method,$args,&$return) {
return true;
}
}
class ddo extends ddo_test {
}
overload("ddo_base");
$x = new ddo_base;
$x->helloWorld();
$x = new ddo;
$x->helloWorld();
------------------------------------------------------------------------
[2005-01-17 11:36:12] [EMAIL PROTECTED]
Description:
------------
the class of an overloaded class is not honouring the fact that it's
parent is overloaded. (as per previous releases)
Reproduce code:
---------------
class ddo_base {
echo "METHOD: ".$method;
function __call($method,$args,&$return) {
return true;
}
}
class ddo extends ddo_test {
}
overload("ddo_base");
$x = new ddo_base;
$x->helloWorld();
$x = new ddo;
$x->helloWorld();
Expected result:
----------------
METHOD: ddo_testMETHOD: helloworldMETHOD: ddoMETHOD: helloworld
Actual result:
--------------
METHOD: ddo_testMETHOD: helloworld
Fatal error: Call to undefined function: helloworld() in ....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31582&edit=1