The following code isn't valid in PHP 5.3
class DatabaseConfiguration {
public $development = array("user" => "dev");
public $production = array("user" => "prod");
public $default =& $this->development;
}
It seems that $default
can only be initialized with a compile-time constant. Is it stated in any php doc? Can $default
be initialized like this without relying on the constructor?