php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73779 typo with different semantics on visibility page
Submitted: 2016-12-18 09:07 UTC Modified: 2016-12-19 16:55 UTC
From: pjvleeuwen at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Class/Object related
PHP Version: 7.1.0 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pjvleeuwen at gmail dot com
New email:
PHP Version: OS:

 

 [2016-12-18 09:07 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-19 15:31 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Class/Object related
 [2016-12-19 15:31 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2016-12-19 16:55 UTC] 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-19 16:55 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-12-19 16:55 UTC] cmb@php.net
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.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5186944b5a79fe41b3a8054859066c980c36000c
Log: Fix #73779: typo with different semantics on visibility page
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 05:01:26 2024 UTC