| Anonymous | Login | Signup for a new account | 10-24-2025 02:41 PDT |
| 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 | ||||
| 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 | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.2.1 | Product Version | 3.2.1 | ||||
| Product Build | |||||||||
| 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. |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 27 unique queries executed. |