Mantis Bugtracker
  

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-01-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

- Relationships

- Notes
(0003379)
nam
09-03-08 23:47

php/091l
 

- Issue History
Date Modified Username Field Change
08-01-08 08:18 koreth New Issue
08-01-08 08:39 emil Priority normal => high
09-03-08 23:46 nam Status new => assigned
09-03-08 23:46 nam Assigned To  => nam
09-03-08 23:47 nam Status assigned => closed
09-03-08 23:47 nam Note Added: 0003379
09-03-08 23:47 nam Resolution open => fixed
09-03-08 23:47 nam Fixed in Version  => 3.2.1


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