[PHP-DEV] PHP 4.0 Bug #6948: $this->func="myfunc"; $this->func("hello"); From: raix <email protected>
Date: 09/29/00

From: raix <email protected>
Operating system: linux
PHP version: 4.0.0
PHP Bug Type: Class/Object related
Bug description: $this-&gt;func="myfunc"; $this-&gt;func("hello");

//I have a variable-function in my class.
class myclass {
  var $func="myfunc";
  function test() {
    $this->func("hello"); //This doesn't work!!

    //This is to be done to make it work:
    $temp=$this->func;
    $temp("hello");
    //This is to silly, I consider this a bug..
    //If it ain't it sould be implementet in the todo.
  }
}
//This sould work no mather the setup.
//I've compiled php with mysql,sybase, shmem

-- 
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>