| Anonymous | Login | Signup for a new account | 10-29-2025 23:51 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
| Status | closed | Product Version | 3.1.1 | ||||||
| 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()) |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 25 unique queries executed. |