php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73623 Example mentions deprecated PHP 4 OO naming style for constructors
Submitted: 2016-11-30 10:11 UTC Modified: 2016-11-30 11:42 UTC
From: olivier dot berger at telecom-sudparis dot eu Assigned: cmb (profile)
Status: Closed Package: Class/Object related
PHP Version: 7.0.13 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: olivier dot berger at telecom-sudparis dot eu
New email:
PHP Version: OS:

 

 [2016-11-30 10:11 UTC] olivier dot berger at telecom-sudparis dot eu
Description:
------------
Hi.

In manual page: http://www.php.net/classobj.examples the examples use the old naming style for constructor names (named as the class) which is deprecated as of PHP 7.

That's quite misleading for users that would implement such naming in PHP 7.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-30 11:29 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Class/Object related -Assigned To: +Assigned To: cmb
 [2016-11-30 11:42 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=341232
Log: Fix #73623: Example mentions deprecated PHP 4 OO naming style for constructors
 [2016-11-30 11:42 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-11-30 11:42 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=62d53f70bd8d83c2b5abf2b6d39b53657a2f41ae
Log: Fix #73623: Example mentions deprecated PHP 4 OO naming style for constructors
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 11:01:33 2024 UTC