Mantis Bugtracker
  

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

- Relationships

- Notes
(0002023)
nam
06-07-07 05:17

php/096h
php/396h
 

- Issue History
Date Modified Username Field Change
05-31-07 17:30 nam New Issue
05-31-07 17:31 nam Description Updated
06-07-07 05:17 nam Status new => assigned
06-07-07 05:17 nam Assigned To  => nam
06-07-07 05:17 nam Status assigned => closed
06-07-07 05:17 nam Note Added: 0002023
06-07-07 05:17 nam Resolution open => fixed
06-07-07 05:17 nam Fixed in Version  => 3.1.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker