Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1773 | minor | always | 05-31-07 17:30 | 06-07-07 05:17 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.2 | ||
|
|||||
Summary: | 0001773: Exceptions should be thrown for accessing members from static context | ||||
Description: |
(rep by U. Wohlfeil) Case 1: //Code class bar { private $value="test"; public static function get() { //access attribute from static context return $this->value; } } bar::get(); Does not throw any exception like expected. ---- Case 2: //Code class bar { private $instance=null; private function __construct(){} public static function get() { if(!$this->instance) $this->instance=new bar(); return $this->instance; } } echo get_class(bar::get()) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|