Anonymous | Login | Signup for a new account | 12-17-2024 08:31 PST |
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 | ||||
0002882 | [Quercus] | major | always | 08-29-08 08:18 | 09-03-08 23:47 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | high | Resolution | fixed | ||||||
Status | closed | Product Version | 3.2.1 | ||||||
Summary | 0002882: Class method can't access private array field | ||||||||
Description |
<?php class Foo { private $arr; private $scalar; public function Foo() { $this->scalar = 1; $this->arr = array(); } public function test() { $this->scalar = 2; $this->arr['beep'] = 1; } } $foo = new Foo(); $foo->test(); This dies with "Fatal Error: Can't access private field 'Foo::arr'". Note that the access to Foo::scalar is fine; it's just the array access that fails. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 27 unique queries executed. |