php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30443 Documentation error on language.oop5.basic.php
Submitted: 2004-10-15 11:50 UTC Modified: 2004-10-15 12:45 UTC
From: alex at passant dot org Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.0.1 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: alex at passant dot org
New email:
PHP Version: OS:

 

 [2004-10-15 11:50 UTC] alex at passant dot org
Description:
------------
On http://www.php.net/manual/en/language.oop5.basic.php, you wrote:

"Every class definition begins with the keyword class, followed by a class name, which can be any name that isn't a  reserved word in PHP."

Then:

"
<?php
class SimpleClass
{

"

So I think there's a mistake in the first sentence, as - I assume - class definition should begin ith the class name, followed by the 'class' keyword.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-15 12:24 UTC] tularis@php.net
I quote "Every class definition begins with the keyword class". It seems it does begin with the keyword 'class' ('class' is the keyword). And THEN it shows the name of the class to be defined, in this example being 'SimpleClass'. So, first the keyword, followed by a valid class name.

There is no such bug in documentation.
 [2004-10-15 12:39 UTC] alex at passant dot org
You're right, I thaught it was dealing about class name, (instead of class definition).

Sorry.
 [2004-10-15 12:45 UTC] goba@php.net
User error -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 07 10:01:31 2024 UTC