Date: 07/20/01
- Next message: dardo <email protected>: "[PHP-DEV] Bug #12278: variable variable inside a string"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Is this a bug?"
- In reply to: Sebastian Bergmann: "[PHP-DEV] Is this a bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: dardo <email protected>: "[PHP-DEV] Bug #12278: variable variable inside a string"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Is this a bug?"
- In reply to: Sebastian Bergmann: "[PHP-DEV] Is this a bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

