At 11:47 AM 7/20/2001 +0200, Sebastian Bergmann wrote:
> <?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
This should be $foo->$method() and $bar->$method()
> 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]
--
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]