<?php
class foo {
function bar() {
print 'bar() called<br>';
}
}
$foo = new foo();
$bar =& $foo;
$method = 'bar';
$foo->$method; // does not work
$bar->$method; // does not work
call_user_method($method, $foo); // works
call_user_method($method, $bar); // works
?>
I think this is a bug, and all four ways to invoke the method must
have worked at some time in the past (I tested with latest 4.0.7-dev
CVS on Win32), since PEAR uses the first/second method to invoke its
'emulated destructors'.
--
Sebastian Bergmann Measure Traffic & Usability
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]