PHP 4.0 Bug #2599 Updated: class variables

From: Date: Sat, 10 Feb 2001 18:51:00 +0000
Subject: PHP 4.0 Bug #2599 Updated: class variables
Groups: php.dev 
Request: Send a blank email to php-dev+get-46204@lists.php.net to get a copy of this message
ID: 2599 Updated by: jimw Reported By: jymil@hotmail.com Status: Open Bug Type: Feature/Change Request Assigned To: Comments: i believe this is by design. i'll let zeev close it if so. Previous Comments: --------------------------------------------------------------------------- [1999-10-25 04:21:28] jymil@hotmail.com Variable declarations in classes can't refer to other variables in that class, only value assigments are allowed. The following example does not work: class test { var $testvar = "this is a test"; var $test2 = $this->testvar; } Would be nice if such things were possible. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=2599&edit=2

« previous php.dev (#46204) next »