Re: Is this a bug?
| From: | Andi Gutmans | Date: | Fri, 20 Jul 2001 12:16:55 +0000 |
| Subject: | Re: Is this a bug? | ||
| References: | 1 | Groups: | php.dev php.dev |
| Request: | Send a blank email to php-dev+get-60377@lists.php.net to get a copy of this message | ||
At 11:47 AM 7/20/2001 +0200, Sebastian Bergmann wrote:
This should be $foo->$method() and $bar->$method()<?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: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net