|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 5882 | feature | always | 04-16-15 14:32 | 04-19-15 10:18 | |
|
|
|||||
| Reporter: | minemaz | Platform: | |||
| Assigned To: | OS: | ||||
| Priority: | normal | OS Version: | |||
| Status: | new | Product Version: | |||
| Product Build: | Resolution: | open | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| Summary: | 0005882: can't overwrite protected member value (on quercus-4.0.39) | ||||
| Description: |
A protected variable defined by class A couldn't be overwritten by the class B which extended class A. <?php class A { protected $content; public function func() { echo "A->content=".$this->content." "; } } class B extends A { public function func() { $this->content = "from B"; echo "B->content=".$this->content." "; parent::func(); } } $b = new B(); $b->func(); PHP 5.3.3 said: B->content=from B A->content=from B but quercus-4.0.39 said: B->content=from B A->content= |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||