PHP 4.0 Bug #6948: $this->func="myfunc"; $this->func("hello");

From: Date: Fri, 29 Sep 2000 22:18:55 +0000
Subject: PHP 4.0 Bug #6948: $this->func="myfunc"; $this->func("hello");
Groups: php.dev 
Request: Send a blank email to php-dev+get-33880@lists.php.net to get a copy of this message
From: raix@intermedia.dk Operating system: linux PHP version: 4.0.0 PHP Bug Type: Class/Object related Bug description: $this->func="myfunc"; $this->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

« previous php.dev (#33880) next »