Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2882 | major | always | 08-29-08 08:18 | 09-03-08 23:47 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | high | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in 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. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|