php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40103 Visibility should be public for overload methods in the documentation
Submitted: 2007-01-11 22:28 UTC Modified: 2007-01-11 23:06 UTC
From: mattsch at gmail dot com Assigned: bjori (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
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: mattsch at gmail dot com
New email:
PHP Version: OS:

 

 [2007-01-11 22:28 UTC] mattsch at gmail dot com
Description:
------------
http://www.php.net/manual/en/language.oop5.overloading.php

The example sets the visibility of the overload methods to private when they should be public.  AFAIK it shouldn't override the visibility of the method it is overloading.

Reproduce code:
---------------
private

Expected result:
----------------
public

Actual result:
--------------
private

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-11 23:06 UTC] bjori@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.

Good catch
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Apr 30 08:01:26 2025 UTC