From: david dot seidel at one-jinx dot de
Operating system: SuSE Linux 2.4.19-4GB
PHP version: 5.0.0RC3
PHP Bug Type: Zend Engine 2 problem
Bug description: cannot call overloaded methods via parent::method() or self::method()
Description:
------------
I would like to call overloaded methods via the magic function
__call($methodName, $params), but this fail in context with parent or
self.
Reproduce code:
---------------
<?PHP
class Test {
public function __call($methodName, $args) {
print "Hello World";
}
}
class Test2 extends Test {
public function testMe() {
parent::setName();
}
}
$test = new Test2();
$test->testMe();
?>
Expected result:
----------------
ouput: Hello World
Actual result:
--------------
Fatal error: Call to undefined method Test::testmealso() in
/srv/www/htdocs/bluewonder_neo/bluewonder/tests/david_test.php on line 4
--
Edit bug report at http://bugs.php.net/?id=28835&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28835&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28835&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28835&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28835&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28835&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28835&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28835&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28835&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28835&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28835&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28835&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28835&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28835&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28835&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28835&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28835&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28835&r=float