#42984 [Opn->Csd]: typo in Members Visibility

From: Date: Tue, 16 Oct 2007 10:00:20 +0000
Subject: #42984 [Opn->Csd]: typo in Members Visibility
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-118@lists.php.net to get a copy of this message
ID: 42984 Updated by: rquadling@php.net Reported By: phpdan at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2007-10-16 03:09:37] phpdan at gmail dot com Description: ------------ http://www.php.net/manual/en/language.oop5.visibility.php Line 2 below should be echo $obj2->public; // Works You could consider changing line 5 to $obj2->printHello(); // Shows Public, Protected2, undefined $obj2 = new MyClass2(); echo $obj->public; // Works echo $obj2->private; // Undefined echo $obj2->protected; // Fatal Error $obj2->printHello(); // Shows Public, Protected2, not Private ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42984&edit=1

« previous php.doc.bugs (#118) next »