ID: 2599
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To:
Comments:
sorry, only constant values may be used
for initial assignments to member variables in php 4
do it in a constructor instead
see http://www.php.net/manual/en/x45905.php
Previous Comments:
---------------------------------------------------------------------------
[2001-02-10 13:51:00] [EMAIL PROTECTED]
i believe this is by design. i'll let zeev close it if so.
---------------------------------------------------------------------------
[1999-10-25 04:21:28] [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]