PHP 4.0 Bug #6948 Updated: $this->func="myfunc"; $this->func("hello");
| From: | Bug Database | Date: | Thu, 05 Oct 2000 21:51:04 +0000 |
| Subject: | PHP 4.0 Bug #6948 Updated: $this->func="myfunc"; $this->func("hello"); | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34295@lists.php.net to get a copy of this message | ||
ID: 6948
Updated by: stas
Reported By: raix@intermedia.dk
Status: Closed
Bug Type: Class/Object related
Assigned To:
Comments:
Yes this is how it works. use $this->$func().
Previous Comments:
---------------------------------------------------------------------------
[2000-09-29 18:18:55] raix@intermedia.dk
//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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6948