php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29187 PHP5 Object Visibility
Submitted: 2004-07-15 16:08 UTC Modified: 2004-07-15 16:13 UTC
From: nuts at squirrelfood dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.0 OS: online documentation
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nuts at squirrelfood dot net
New email:
PHP Version: OS:

 

 [2004-07-15 16:08 UTC] nuts at squirrelfood dot net
Description:
------------
In the Docs for PHP5 Objects:Visibility (http://www.php.net/manual/en/language.oop5.visibility.php) - I believe there are errors in the text:

The visibility of a member or method can be defined by prefixing the declaration with the keywords: public, protected or private. Public declared items can be allow access to any caller. Protected limits access access to only classes inherited. Protected limits visiblity only to the class that defines the item.

should read: 

The visibility of a member or method can be defined by prefixing the declaration with the keywords: public, protected or private. Public declared items can be allow access to any caller. Protected limits access to only classes inherited. Private limits visiblity only to the class that defines the item.

and the following lines:

Class members must be defined with public, private, or private.

should read: 

Class members must be defined with public, protected, or private.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-15 16:13 UTC] tony2001@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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:27 2024 UTC