Anonymous | Login | Signup for a new account | 10-08-2024 15:26 PDT |
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 | |||||||
0005882 | [Quercus] | feature | always | 04-16-15 14:32 | 04-19-15 10:18 | |||||||
Reporter | minemaz | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | Product 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= |
|||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
Notes | |
(0006626) minemaz 04-19-15 10:18 |
I want to close this chicket so it is works fine on quercus-4.0.43. |
Issue History | |||
Date Modified | Username | Field | Change |
04-16-15 14:32 | minemaz | New Issue | |
04-19-15 10:18 | minemaz | Note Added: 0006626 |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |