Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
585 | minor | always | 12-27-05 15:41 | 08-25-08 11:27 | |
|
|||||
Reporter: | creich | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.1 | ||
|
|||||
Summary: | 0000585: private not hidden... | ||||
Description: |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> [^] <html xmlns="http://www.w3.org/1999/xhtml"> [^] <head></head> <body> <?php class ParentClass { function parentMethod() { echo "Hi Parent "; } } class ChildClass extends ParentClass{ private $privateVar; public $publicVar; function childMethod() { echo "Hi Child "; } } $foo = new ChildClass(); $foo->parentMethod(); $foo->childMethod(); $foo->publicVar = "Goodbye"; echo $foo->publicVar." "; $foo->privateVar = "Private"; echo $foo->privateVar." "; ParentClass::parentMethod(); ?> </body> </html> Should output: Hi Parent Hi Child Goodbye Fatal error: Cannot access private property ChildClass::$privateVar... Instead outputs: Hi Parent Hi Child Goodbye Private Hi Parent |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|