Anonymous | Login | Signup for a new account | 12-17-2024 10:30 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001773 | [Quercus] | minor | always | 05-31-07 17:30 | 06-07-07 05:17 | ||||
Reporter | nam | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.1.2 | Product Version | 3.1.1 | ||||
Product Build | |||||||||
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 | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 25 unique queries executed. |