Doc #73779 [Ver->Csd]: typo with different semantics on visibility page

From: Date: Mon, 19 Dec 2016 16:55:42 +0000
Subject: Doc #73779 [Ver->Csd]: typo with different semantics on visibility page
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14276@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73779&edit=1 ID: 73779 Updated by: cmb@php.net Reported by: pjvleeuwen at gmail dot com Summary: typo with different semantics on visibility page -Status: Verified +Status: Closed Type: Documentation Problem Package: Class/Object related PHP Version: 7.1.0 Assigned To: cmb Block user comment: N Private report: N 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: ------------------------------------------------------------------------ [2016-12-19 16:55:13] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=341422 Log: Fix #73779: typo with different semantics on visibility page ------------------------------------------------------------------------ [2016-12-18 09:07:21] pjvleeuwen at gmail dot com Description: ------------ --- From manual page: http://www.php.net/language.oop5.visibility --- This sentence does not seem to be correct: "Members declared protected can be accessed only within the class itself and by inherited classes." I believe what the author meant is: "Members declared protected can be accessed only within the class itself and by inheriting classes." In other words: if class C extends class B which extends class A, then a protected member of B can be accessed by C. With the current text "inherited classes" suggest that class A can access protected members of B. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73779&edit=1

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