#31582 [NEW]: extended overload classes not honouring overload
| From: | alan_k@php.net | Date: | Mon, 17 Jan 2005 10:36:13 +0000 |
| Subject: | #31582 [NEW]: extended overload classes not honouring overload | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72283@lists.php.net to get a copy of this message | ||
From: alan_k@php.net
Operating system: linux
PHP version: 4CVS-2005-01-17 (stable)
PHP Bug Type: Scripting Engine problem
Bug description: extended overload classes not honouring overload
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 bug report at http://bugs.php.net/?id=31582&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31582&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31582&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31582&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31582&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31582&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31582&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31582&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31582&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31582&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31582&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31582&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31582&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31582&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31582&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31582&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31582&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31582&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31582&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31582&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31582&r=mysqlcfg